setting up apache behind a forward proxy

十年热恋 提交于 2019-12-06 11:25:56

问题


I have an Internet connection which is behind a forward proxy.I have to use the proxy server ip address & port No. to connect to the internet.I have installed apache web server in my machine.The apache is configured to use ProxyPass (meaning - it has to fetch documents from an external site).But the forward proxy blocks any such request.How do I set up apache to use the forward proxy server's ip address & port No to access external urls.


回答1:


If you wanted to proxy say a site from your machine through the corporate proxy, like I recently had to do for a Centos installation, you would use this in your apache config:

ProxyPass       /centos1/  http://ftp.riken.jp/

ProxyPassReverse /centos1/ http://ftp.riken.jp/

ProxyRemote http://ftp.riken.jp/ http://{corporate proxy here}:{corporate proxy port}


来源:https://stackoverflow.com/questions/7554225/setting-up-apache-behind-a-forward-proxy

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