Reverse Proxy
  • Squid

最簡單的一些設定,讓 proxy 會動而已:

acl all src 0.0.0.0/0.0.0.0
cache_dir ufs /home/squid/cache 40960 16 256
cache_effective_user squid
cache_mem 64 MB
cache_peer 10.20.30.40 parent 80 0 no-query originserver
http_access allow all
http_port 1.2.3.4:80 accel vhost
visible_hostname gslin.org
logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h]
access_log /home/squid/logs/access.log squid
cache_log /home/squid/logs/cache.log
cache_store_log /home/squid/logs/store.log
page_revision: 1, last_edited: 1194727158|%e %b %Y, %H:%M %Z (%O ago)