Solution for 503ServiceTemporarilyUnavailable error in ApacheProxyPass

Source: Internet
Author: User
The solution of 503ServiceTemporarilyUnavailable error in ApacheProxyPass is to configure Apache and Tomcat integration on Redhat5Linux today and forward the Jsp page address to the tomcat address. For example, the actual Jsp address is http: // 127.0.0 .... solution for Apache ProxyPass Error 503 Service Temporarily Unavailable: Configure Apache and Tomcat integration on Redhat5 Linux today, and forward the address of the Jsp page to the tomcat address.
If the actual Jsp address is http: // 127.0.0.1: 8080/jsp/, you can also access it by accessing http: // 127.0.0.1/jsp.
So configure ProxyPass in Apache:
ProxyPass/jsp http: // localhost: 8080/jsp
However, it is found that The access is not accessible, and The Error 503 occurs: The log code www.2cto.com Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. please try again later. apache Server at localhost Port 80 view apache logs/var/log/httpd/error_log: log code [Wed Aug 10 21:02:27 2011] [error] (13) Permission denied: proxy: HTTP: attempt to connect to 10.140.0.109: 7080 (127.0.0.1) failed [Wed Aug 10 21:02:27 2011] [error] ap_proxy_connect_backend disabling worker for (10.140.0.109) [Wed Aug 10 20:30:51 2011] [error proxy: HTTP: disabled connection for (127.0.0.1) log/var/log/httpd/access_log: log code 127.0.0.1---[10/Aug/2011: 21: 02: 27-0400] "GET/jsp/HTTP/1.0" 503 401 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; CBA ;. net clr 2.0.50727 ;. net clr 3.0.20.6.2152 ;. net clr 3.5.30729) "The reason why SELinux was suspected after data query and analysis was found was:
The Liunx command code [root @ logs] #/usr/sbin/getsebool-a | grep httpd_can_network_connect --> off is used to try the solution:
We need to set httpd_can_network_connect to on: linux command code [root @ logs] #/usr/sbin/setsebool-P httpd_can_network_connect = 1 [root @ logs] #/usr/sbin/getsebool-a | grep httpd_can_network_connect success --> on www.2cto.com, the page is accessible. In addition, directly disabling SELinux can solve this problem: modify/etc/selinux/config and restart: Liunx code SELINUX = disabled or take effect in real time: linux command code [root @ var] #/usr/sbin/setenforce 0 author jinyanhui2008

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.