mod_proxy でフォワードプロキシが出来ない
現象
mod_proxy でフォワードプロキシを有効にしても正常に動作してくれない
httpd.conf
ProxyRequests OnOrder deny,allow Deny from all Allow from 192.168.0
エラーログ(error_log)
[error] (13)Permission denied: proxy: HTTP: attempt to connect to ***.***.***.***:80 (*) failed
解決策
SELinux の Allow HTTPD scripts and modules to connect to the network. をチェックする必要がある模様
ターミナルから
system-config-securitylevel
で起動し、以下をチェックする
Allow HTTPD scripts and modules to connect to the network
参考
http://www.dharwadkar.com/weblog/apache_fc6_01/view
Make SELinux happy by checking System >Administration>Security Level and Firewall >SELinux >Modify SELinux Policy >HTTPD Service >Allow HTTPD scripts and modules to connect to the network.