Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] squid reverse proxy working successfully


Hi all

Just posting this here so that it gets saved in the SLUG archives and may help someone in the same situation in future. The following configuration has been successfully tested and more sites should be easily added by adding to the following config. The following was added to a default version 3.0 squid.conf for a reverse proxy setup.


# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
acl our_sites dstdomain www.domain1.com.au www.domain2.org.au www.domain3.org.au *.domain1.com.au *.domain2.org.au *.domain3.org.au
acl domain1 dstdomain www.domain1.com.au *.domain1.com.au
acl domain2 dstdomain www.domain2.org.au *.domain2.org.au
acl domain3 dstdomain www.domain3.org.au *.domain3.org.au

http_port 80 accel defaultsite=www.domain1.com.au vhost
cache_peer 10.1.2.250 parent 80 0 no-query originserver name=domain1_peer
cache_peer 10.1.2.248 parent 80 0 no-query originserver name=domain2_peer
cache_peer 10.1.2.249 parent 80 0 no-query originserver name=domain3_peer

http_access allow our_sites
cache_peer_access domain1_peer allow domain1
cache_peer_access domain2_peer allow domain2
cache_peer_access domain3_peer allow domain3


(NOT part of squid.conf)
where
10.1.2.250 = domain1 http server
10.1.2.248 = domain2 http server
10.1.2.249 = domain3 http server
10.1.2.252 = squid server
all servers are seperate servers and DNS is working correctly both internally and externally.


Thanks again to Martin and all who helped with suggestions to get this working.
Ben