squid的配置如下,该配置可以浏览被反代的网站,但就是无法login、post和upload...
squid.conf:
http_port 80 transparent
cache_mem 64 MB
cache_dir ufs /var/spool/squid 4096 16 256
cache_effective_user squid
cache_effective_group squid
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
visible_hostname xxx
cache_mgr [email protected]
acl all src 0.0.0.0/0.0.0.0
http_access allow all
cache_peer 162.243.xxx.xxx parent 80 0 no-query originserver name=web
cache_peer_domain web blog.xxx.com
cache_peer_access web allow all
题外话:我是想实现类似于cdn以及隐藏真实ip的效果...
squid.conf:
http_port 80 transparent
cache_mem 64 MB
cache_dir ufs /var/spool/squid 4096 16 256
cache_effective_user squid
cache_effective_group squid
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
visible_hostname xxx
cache_mgr [email protected]
acl all src 0.0.0.0/0.0.0.0
http_access allow all
cache_peer 162.243.xxx.xxx parent 80 0 no-query originserver name=web
cache_peer_domain web blog.xxx.com
cache_peer_access web allow all
题外话:我是想实现类似于cdn以及隐藏真实ip的效果...