Search squid archive

Squid 2.6 Simple Reverse Proxy Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am running squid-2.6STABLE6 as a reverse proxy.
I have two hosts that I want reverse proxied:
foo1.bar1.com and foo2.bar2.com

I've set up my squid.conf as follows:

http_port 80 vhost
http_access allow all

cache_peer foo1.bar1.com parent 80 0 no-query
originserver
cache_peer foo2.bar2.com parent 80 0 no-query
originserver

acl server1 dstdomain .foo1.bar1.com
acl server2 dstdomain .foo2.bar2.com
cache_peer_access foo1.bar1.com allow server1
cache_peer_access foo1.bar1.com deny all
cache_peer_access foo2.bar2.com allow server2
cache_peer_access foo2.bar2.com deny all


The problem I'm having is that when I access
foo2.bar2.com through the proxy, I'm handed out the
webpage for foo1.bar1.com.

What am I missing?

Thanks,
J.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux