Squid reverse proxy multiple servers same domain

Discussion in 'Server Operation' started by kapnos, Mar 7, 2010.

  1. kapnos

    kapnos New Member

    Hi,

    we have the following scenario and squid.conf:
    proxy.gif

    Code:
    http_port 8080 accel vhost
    cache_peer 195.55.66.77 parent 80 0 no-query no-digest originserver name=server1
    cache_peer 195.55.66.78 parent 80 0 no-query no-digest originserver name=server2
    cache_peer 195.55.66.79 parent 80 0 no-query no-digest originserver name=server3
    acl sites_server1 dstdomain server1.domain.com
    acl sites_server2 dstdomain server2.domain.com
    acl sites_server3 dstdomain server3.domain.com
    acl all src 0.0.0.0/0.0.0.0
    http_access allow sites_server1
    http_access allow sites_server2
    http_access allow sites_server3
    http_access deny all
    cache_peer_access server1 allow sites_server1
    cache_peer_access server2 allow sites_server2
    cache_peer_access server3 allow sites_server3
    For some reason I can't understand, I have access only to 195.55.66.77 from the proxy clients and not the other two servers. What's wrong with my config?
    Thank you very much in advance.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your squid log?
     
  3. kapnos

    kapnos New Member

    No but I've found the solution. I had to place the cache_peer_access commands on top of the http_access commands
     

Share This Page