apache正向代理配置:

 ProxyRequests On

ProxyVia On   

<Proxy *>

 Order deny,allow

  Deny from all

  Allow from 192.168.1

  </Proxy>

  CacheEnable disk /

CacheRoot "/var/cache/mod_proxy"


apache反向代理配置:

 ProxyRequests Off

 <Proxy *>

  Order deny,allow

  Allow from all

 </Proxy>

  ProxyPass /w4ya http://www.w4ya.com

  ProxyPa***everse /w4ya http://www.w4ya.com