
Friday, June 27, 2008
Tuesday, June 24, 2008
Squid Proxy
http_port 192.168.165.2:80
#make your squid listen to port 80
cache_dir ufs /var/spool/squid 5000 16 256
cache_mem 1024 MB
cache_access_log /var/log/squid/access.log
emulate_httpd_log on
maximum_object_size_in_memory 2 MB
#ACL's
acl all src 0.0.0.0/0.0.0.0
#put the default ACLs
no_cache deny QUERY
no_cache deny POST
#httpd's
httpd_accel_host localhost
httpd_accel_port 80
redirect_rewrites_host_header off
httpd_accel_single_host on
httpd_accel_with_proxy off
httpd_accel_uses_host_header on
buffered_logs on
#object w/o expiry time shud be considered fresh
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#caches the ff. files bsan moviolate sa w3 standar. :D
refresh_pattern -i \.css$ 2 90% 2 override-expire override-lastmod ignore-reload reload-into-ims
refresh_pattern -i \.swf$ 2 90% 2 override-expire override-lastmod ignore-reload reload-into-ims
refresh_pattern -i \.js$ 2 90% 2 override-expire override-lastmod ignore-reload reload-into-ims
forwarded_for on
#admin stuffs
visible_hostname reversesquid
cache_effective_user squid
cache_effective_group squid
cachemgr_passwd imong_password all
cache_mgr rodel.maranon@gmail.com
#make your squid listen to port 80
cache_dir ufs /var/spool/squid 5000 16 256
cache_mem 1024 MB
cache_access_log /var/log/squid/access.log
emulate_httpd_log on
maximum_object_size_in_memory 2 MB
#ACL's
acl all src 0.0.0.0/0.0.0.0
#put the default ACLs
no_cache deny QUERY
no_cache deny POST
#httpd's
httpd_accel_host localhost
httpd_accel_port 80
redirect_rewrites_host_header off
httpd_accel_single_host on
httpd_accel_with_proxy off
httpd_accel_uses_host_header on
buffered_logs on
#object w/o expiry time shud be considered fresh
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#caches the ff. files bsan moviolate sa w3 standar. :D
refresh_pattern -i \.css$ 2 90% 2 override-expire override-lastmod ignore-reload reload-into-ims
refresh_pattern -i \.swf$ 2 90% 2 override-expire override-lastmod ignore-reload reload-into-ims
refresh_pattern -i \.js$ 2 90% 2 override-expire override-lastmod ignore-reload reload-into-ims
forwarded_for on
#admin stuffs
visible_hostname reversesquid
cache_effective_user squid
cache_effective_group squid
cachemgr_passwd imong_password all
cache_mgr rodel.maranon@gmail.com
Monday, June 23, 2008
Subscribe to:
Posts (Atom)





