Sekar wrote:
Hello all,

I am using squid-2.6STABLE4 as a reverse proxy for multiple domains which are hosted on 3 servers.
For example

Server A (192.168.1.101) :
   aa1.mydomain.com
   aa2.mydomain.com
Server B (192.168.1.102) :
   aa3.mydomain.com
   aa4.mydomain.com
Server C (192.168.1.103):
   aa5.mydomain.com
   aa6.mydomain.com

I have the following configuration entries on the squid conf.

       http_port 80 vhost
       cache_peer 192.168.1.101 parent 80 0 no-query originserver
       cache_peer 192.168.1.102 parent 80 0 no-query originserver
       cache_peer 192.168.1.103 parent 80 0 no-query originserver

But this doesn't seems to work for me. How does the squid-2.6 knows to resolve the corresponding origin servers. In squid-2.5 we used to resolve this issue using either the internal DNS or /etc/hosts file.

Please help me to fix this issue.
Thanks in advance,
Sek


Look into the "cache_peer_access" directive.

acl serverA dstdomain .aa1.mydomain.com .aa2.mydomain.com
cache_peer_access 192.168.1.101 allow serverA
cache_peer_access 192.168.1.101 deny all

Chris

Reply via email to