Squid proxy
Squid forward all requests to another proxy
cache_peer ipofparentproxy parent <port> 0 no-query default
#cache_peer_access ipofparentproxy allow !localnet
acl all src 0.0.0.0/0.0.0.0
http_access allow all
http_access allow all
#never_direct deny noanotherproxyservers
never_direct allow all#dns_nameservers ipofdnsa, ipofdnsb
Parameters
never_direct allow all
By default squid always contacts the origin server to satisfy https requests
squid daemon know about a parent cache and squid can not connect directly to origin servers
cache_peer_access peername allow|deny [!]ACLname
The cache_peer_access rules determine which requests Squid will forward to a particular neighbor. If a particular request is denied by a cache_peer_access list, Squid doesn’t forward the request to that neighbor.
refresh_pattern [-i] regexp min percent max [options]
refresh_pattern -i .gif$ 1440 20% 10080.
It helps Squid decide whether or not a given request can be a cache hit or must be treated as a miss.
refresh_pattern -i .gif$ 1440 20% 10080.
It helps Squid decide whether or not a given request can be a cache hit or must be treated as a miss.
Comments
Post a Comment