visible_hostname %PUBLIC_NAME% offline_mode off shutdown_lifetime 5 seconds # Disable ICP icp_port 0 # Disk/memory caching cache_dir ufs /var/spool/squid %DISK_CACHE_MB% 16 256 read_ahead_gap 128 Kb cache_mem 32 MB maximum_object_size_in_memory 1 MB # Enable logging, Apache style emulate_httpd_log on strip_query_terms off cache_access_log /var/log/squid/access.log # Accelerator tweaks. See manual for more information. collapsed_forwarding on refresh_stale_hit 60 seconds retry_on_error on negative_ttl 0 seconds # Prevent caching of Matrix admin interface, and POSTs acl all src 0.0.0.0/0.0.0.0 acl QUERY urlpath_regex /cgi-bin /_edit /_admin /_nocache /_recache /__lib /__fudge /_login acl POST method POST cache deny QUERY cache deny POST # Listen interface/port http_port 80 vhost # Target webserver cache_peer %TARGET_WEBSERVER% parent %TARGET_WEBSERVER_PORT% 0 originserver no-query no-digest login=PASS default # Allow everything by default http_access allow all