Ticket #25450: squid.conf

File squid.conf, 1.6 KB (added by florian@…, 13 years ago)

squid.conf for reproducing ftp hang with local squid proxy

Line 
1acl all src 0.0.0.0/0.0.0.0
2acl manager proto cache_object
3acl localhost src 127.0.0.1/255.255.255.255
4acl to_localhost dst 127.0.0.0/8
5acl SSL_ports port 443
6acl Safe_ports port 80          # http
7acl Safe_ports port 21          # ftp
8acl Safe_ports port 443         # https
9acl Safe_ports port 70          # gopher
10acl Safe_ports port 210         # wais
11acl Safe_ports port 1025-65535  # unregistered ports
12acl Safe_ports port 280         # http-mgmt
13acl Safe_ports port 488         # gss-http
14acl Safe_ports port 591         # filemaker
15acl Safe_ports port 777         # multiling http
16acl CONNECT method CONNECT
17
18http_access allow manager localhost
19http_access deny manager
20http_access deny !Safe_ports
21http_access deny CONNECT !SSL_ports
22http_access deny to_localhost
23
24acl local_net src 192.168.0.0/16
25http_access allow local_net
26
27http_access allow localhost
28
29http_access deny all
30
31icp_access allow all
32
33http_port 3128
34
35hierarchy_stoplist cgi-bin ?
36
37maximum_object_size_in_memory 32 KB
38
39memory_replacement_policy heap GDSF
40
41cache_replacement_policy heap LFUDA
42
43cache_dir ufs /opt/local/var/squid/cache 700 16 256
44
45maximum_object_size 128 MB
46
47access_log /opt/local/var/squid/logs/access.log squid
48
49cache_store_log none
50
51logfile_rotate 3
52
53acl QUERY urlpath_regex cgi-bin \?
54cache deny QUERY
55
56refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod
57refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod
58
59quick_abort_min 0 KB
60quick_abort_max 0 KB
61quick_abort_pct 100
62
63negative_ttl 2 minutes
64
65acl apache rep_header Server ^Apache
66broken_vary_encoding allow apache
67
68shutdown_lifetime 10 seconds
69
70visible_hostname skot
71
72icp_port 0
73
74forwarded_for off
75
76coredump_dir /opt/local/var/squid/cache
77
78pipeline_prefetch on
79