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 parent 80 0 no-query originserver name=server1
cache_peer_domain server1 site1.woter.net

cache_peer 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
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:

Code: TCP_DENIED/403 3914 GET htp://site1/ - NONE/- text/html
1335474080.188      1 TCP_DENIED/403 3970 GET htp://site2/ - NONE/- text/html
I've been trying to work this one out for a few days now. I'd be grateful for any support on the subject.

Many thanks


P.S. htp is a deliberate error to get arround a forum restriction.