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 https://www.centos.bz
  7. ProxyPassReverse /centos https://www.centos.bz
标签:Apache 发布于:2019-11-23 04:42:46