How to Detect cause of 503 Service Temporarily Unavailable error and handle it?

老子叫甜甜 提交于 2019-11-30 00:20:28

There is of course some apache log files. Search in your apache configuration files for 'Log' keyword, you'll certainly find plenty of them. Depending on your OS and installation places may vary (in a Typical Linux server it would be /var/log/apache2/[access|error].log).

Having a 503 error in Apache usually means the proxied page/service is not available. I assume you're using tomcat and that means tomcat is either not responding to apache (timeout?) or not even available (down? crashed?). So chances are that it's a configuration error in the way to connect apache and tomcat or an application inside tomcat that is not even sending a response for apache.

Sometimes, in production servers, it can as well be that you get too much traffic for the tomcat server, apache handle more request than the proxyied service (tomcat) can accept so the backend became unavailable.

If your exception from error.log file showing like this :

No connection could be made because the target machine actively refused it. : AH00957: HTTP: attempt to connect to 127.0.0.1:9090 (localhost) failed

try to change in the httpd.conf file from

Listen 90

to

Listen 127.0.0.1:9090
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!