apache正向代理与反向代理



apache正向代理与反向代理.

vi /etc/httpd/conf/httpd.conf

正向

proxyrequests on

proxyvia off/on

<proxy 代理的ip地址:80>

order deny,allow

deny form all

allow from all

</proxy>


客户端设置 ie–工具–internet–连接–局域网设置–代理服务器

反向

proxyrequests off

<proxy 代理的ip地址:80>

order deny,allow

deny from all

allow fromall

</proxy>

ProxyPass /test http://www.google.com/
ProxyPassReverse /test http://www.google.com/