正向代理示例配置:
- 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
转载请标明文章来源:《https://www.centos.bz/2012/08/apache-forward-reverse-proxy/》