现在的位置: 首页 > 综合 > 正文

Apache反向代理设置一例

2014年10月05日 ⁄ 综合 ⁄ 共 461字 ⁄ 字号 评论关闭

NameVirtualHost *:80

<VirtualHost *:80>

ServerAdmin webmaster@dummy-host.example.com

ServerName www.a.org

ProxyRequests Off

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

ProxyPass / http://192.168.0.115/

ProxyPassReverse / http://192.168.0.115/

</VirtualHost>

<VirtualHost *:80>

ServerAdmin webmaster@dummy-host.example.com

ServerName www.b.org

ProxyRequests Off

<Proxy *>

Order deny,allow

Allow from all

</Proxy>

ProxyPass / http://192.168.0.116/

ProxyPassReverse / http://192.168.0.116/

</VirtualHost>

抱歉!评论已关闭.