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

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

 
 

正向代理示例配置:

  1. ProxyRequests On
  2. ProxyVia On
  3.  
  4. <Proxy *>
  5. Order deny,allow
  6. Deny from all
  7. Allow from 192.168.0
  8. </Proxy>
  9. CacheEnable disk /
  10. CacheRoot "/var/cache/mod_proxy"

反向代理示例配置:

  1. ProxyRequests Off
  2. <Proxy *>
  3. Order deny,allow
  4. Allow from all
  5. </Proxy>
  6. ProxyPass /centos http://www.centos.bz
  7. ProxyPassReverse /centos http://www.centos.bz
 

转载请标明文章来源:《https://www.centos.bz/2012/08/apache-forward-reverse-proxy/

原文地址:https://www.cnblogs.com/L-H-R-X-hehe/p/3955077.html