首页 > 代码库 > Apache正向代理与反向代理配置

Apache正向代理与反向代理配置

正向代理示例配置:
ProxyRequests On
ProxyVia On

<Proxy *>
Order deny,allow
Deny from all
Allow from 192.168.0
</Proxy>
CacheEnable disk /
CacheRoot "/var/cache/mod_proxy"
反向代理示例配置:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /centos http://www.centos.bz
ProxyPassReverse /centos http://www.centos.bz

Apache正向代理与反向代理配置