summaryrefslogtreecommitdiff
path: root/tests/examplefiles/squid.conf
blob: 31e611d69c50aa51b2eb69a7b4f6e42584b23456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# First, a comment block for the deafult conf:

#  TAG: buffered_logs   on|off
#       cache.log log file is written with stdio functions, and as such
#       it can be buffered or unbuffered. By default it will be unbuffered.
#       Buffering it can speed up the writing slightly (though you are
#       unlikely to need to worry unless you run with tons of debugging
#       enabled in which case performance will suffer badly anyway..).
#
#Default:
# buffered_logs off

# Now, a slightly useful (but in no way complete) set of options:

cache_peer upstream1.example.com parent 8080 0 no-query proxy-only round-robin
cache_peer upstream2.example.com parent 3128 0 no-query proxy-only round-robin
never_direct allow all
never_direct allow CONNECT

acl myclients src 127.0.0.1
http_access allow myclients

acl mynet src 192.168.0.0/255.255.0.0
no_cache deny mynet

acl mynetlocal dst 192.168.0.0/255.255.0.0
always_direct allow mynetlocal