apache-httpd代理请求,selinux造成503问题的解决方法

时间:2022-09-09 08:28:53

NameVirtualHost *:80

<VirtualHost *:80>
ServerName test.baidu.com
ProxyPreserveHost on
ProxyPass / http://127.0.0.1:19725/
ProxyPassReverse / http://127.0.0.1:19725/
ErrorLog "logs/test.baidu.com-error.log"
CustomLog "logs/test.baidu.com-access.log" common
</VirtualHost>

 

 

一句话解决问题:

# setsebool -P httpd_can_network_connect 1