Under Linux, Apache installed properly, httpd.conf has the normal configuration, the test has opened 80 ports, but outside the network testing is still prompts 503 errors. After investigation suspect information and analysis is the cause of SELinux, so to see it really is:
- The agent was unable to access
if access may be independent proxy service, then what SELinux is not in violation of the rules of protection httpd. May be connected by a network command allows httpd (proxy server connected to the rear end of the implement)
Liunx command code
[root @ logs] # / usr / sbin / getsebool -a | grep httpd_can_network_connect
httpd_can_network_connect -> OFF
then try Solution:
We need to httpd_can_network_connect set 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
httpd_can_network_connect -> ON
revisit the page and she can visit.
Also directly off SELinux it is possible to solve this problem:
Modify / etc / selinux / config and restart:
Liunx Code Code
SELINUX = disabled
mode or with immediate effect: the
Linux command code
[root @ linuxidc] # / usr / sbin / setenforce 0