Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Apr 2012
SQUID reverse proxy configuration help
I have a QNAP NAS that has two instances of Apache running. To get to certain services, I use port 80 and for the other services I use port 8080. I only have one public IP address. I am hoping to use SQUID reverse proxy with domain based virtual hosts to enable me to access both these services from port 80.
So far, I am trying it internally. I have written the following config for squid:
# The user name and group name Squid will operate as cache_effective_user httpdusr cache_effective_group everyone http_port 80 accel defaultsite=qnap.mydomain.net vhost cache_peer 192.168.5.10 parent 80 0 no-query originserver name=server1 cache_peer_domain server1 site1.woter.net cache_peer 192.168.5.10 parent 8080 0 no-query originserver name=server2 cache_peer_domain server2 site2.mydomain.net acl sites1 dstdomain site1.mydomain.net acl sites2 dstdomain site2.mydomain.net http_access allow sites1 http_access allow sites2 # acl all src all access_log /opt/var/squid/logs/access.log squid cache_log /opt/var/squid/logs/cache.log cache_store_log /opt/var/squid/logs/store.log cache_mgr someoneatsomewhere.com
192.168.5.100 TCP_DENIED/403 3914 GET htp://site1/ - NONE/- text/html 1335474080.188 1 192.168.5.100 TCP_DENIED/403 3970 GET htp://site2/ - NONE/- text/html
P.S. htp is a deliberate error to get arround a forum restriction.