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:
As the config stands, I get a SQUID webpage, for both htp://site1 and htp://site2 but it is an Access Denied page. Access.log shows:
# The user name and group name Squid will operate as
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
I've been trying to work this one out for a few days now. I'd be grateful for any support on the subject.
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.