Results 1 to 1 of 1
Hi,
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-26-2012 #1Just Joined!
- Join Date
- Apr 2012
- Posts
- 1
SQUID reverse proxy configuration help
Hi,
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:Code:# 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
I've been trying to work this one out for a few days now. I'd be grateful for any support on the subject.Code: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
Many thanks
W.
P.S. htp is a deliberate error to get arround a forum restriction.


Reply With Quote
