All pastes #2086777 Raw Edit

Unnamed

public text v1 · immutable
#2086777 ·published 2011-10-04 18:25 UTC
rendered paste body
http_port 80 accel defaultsite=172.19.1.10 vhost
cache_peer 172.19.1.10 parent 80 7 no-query no-digest originserver name=foo http11

# Do not tell the world that which squid version we're running
httpd_suppress_version_string on

max_filedescriptors 65536

#Connection timeout setings
connect_timeout 3 minutes

acl all src all
acl special_url url_regex  ^/statuscheck/$
http_access allow special_url
negative_ttl 0 seconds
acl dontlog url_regex statuscheck/$
acl our_sites dstdomain "/etc/squid/safe-sites"

#Rule to redirect Blackberry users
acl BBMobile browser -i blackberry
acl BBmobilesite url_regex -i .*foo.com/mobile.*
acl BBmobilesite url_regex -i .*foo.com/app_themes.*
acl BBcookie_bypass req_header Cookie star_ui=standard
http_access allow BBmobilesite
http_access allow BBcookie_bypass
http_access deny our_sites BBMobile
deny_info http://www.foo.com/mobile BBMobile
acl Mobile browser -i ip(hone|od)
acl mobilesite url_regex -i .*foo.com/iphone.*
acl mobilesite url_regex -i .*foo.com/app_themes.*

acl cookie_bypass req_header Cookie star_ui=standard

http_access allow cookie_bypass
http_access allow mobilesite
http_access deny our_sites Mobile
deny_info http://www.foo.com/iphone Mobile

http_access allow our_sites
cache_peer_access foo allow our_sites
cache_peer_access foo deny all

minimum_expiry_time 30 seconds
cache_vary on
header_access X-Powered-By deny all
header_access X-AspNetMvc-Version deny all
header_access X-AspNet-Version deny all
header_access Server deny all
via off

#http_access allow manager
cache_mem 25600 MB
maximum_object_size_in_memory 5000 KB
cache_replacement_policy heap LFUDA
cache_dir aufs /var/cache/squid/disk0 4096 16 256
cache_dir aufs /var/cache/squid/disk1 4096 16 256
cache_dir aufs /var/cache/squid/disk2 4096 16 256
cache_dir aufs /var/cache/squid/disk3 4096 16 256
cache_dir aufs /var/cache/squid/disk4 4096 16 256
cache_dir aufs /var/cache/squid/disk5 4096 16 256
cache_dir aufs /var/cache/squid/disk6 4096 16 256
cache_dir aufs /var/cache/squid/disk7 4096 16 256
cache_dir aufs /var/cache/squid/disk8 4096 16 256
cache_dir aufs /var/cache/squid/disk9 4096 16 256
cache_dir aufs /var/cache/squid/disk10 4096 16 256

#reply_body_max_size 0 allow all # default is already zero
access_log /var/log/squid/access.log squid !dontlog
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
hosts_file /etc/hosts

refresh_pattern . 1 20% 1400 stale-while-revalidate=86400 max-stale=86400

cache_mgr eric@foo.com
cachemgr_passwd xxx all