OK, I think I'm just about done with this. I can handle requests for fixed-
ip and virtual ip-based hosts on different networks and servers but not name-
based virtual hosts using:
http_port ip:80 vhost defaultsite=www.mymaindomain.com
cache_peer origin-host-ip parent 80 0 no-query originserver
name=vhost1.domain.tld ; virtual name-based host #1
cache_peer origin-host-ip parent 80 0 no-query originserver
name=vhost2.domain.tld ; virtual name-based host #2
acl vhost1acl dstdomain vh1-via.mymaindomain.com
acl vhost2acl dstdomain vh2-via.mymaindomain.com
cache_peer_access vhost1.domain.tld allow vhost1acl
cache_peer_access vhost2.domain.tld allow vhost2acl
And, dns has CNAME records for both vh1-via.mymaindomain.com and vh2-
via.mymaindomain.com pointing to www.mymaindomain.com.
Unfortunately, it doesn't work resulting in the following access log entry:
1060286004.770 8 browser.ip TCP_MISS/200 1471 GET http://vh1-
via.mymaindomain.com/ - FIRST_UP_PARENT/origin-host-ip text/html
So it looks as if the acl is working OK to provide the originserver ip
address but the virtual site host name is not being provided.
How do I get this to happen? Suggestions?
Thanks.
-- Jim Flowers<jflowers@ezo.net> ---------- Original Message ----------- From: Henrik Nordstrom <hno@squid-cache.org> > You want some options there to enable accelerator mode... I would > suggest > > http_port ip:80 accel vhost defaultsite=www.yourmaindomain.com > ... > > Squid selects a cache_peer to forward the request to. Which peer it > selects is based on cache_peer_access (default any configured peer). > > If you want different domains to be forwarded to different servers > then set this up with cache_peer_access by only allowing the domains > which should be forwarded to each server. > > Regards > Henrik > > -- > Donations welcome if you consider my Free Squid support helpful. > https://www.paypal.com/xclick/business=hno%40squid-cache.org > > If you need commercial Squid support or cost effective Squid or > firewall appliances please refer to MARA Systems AB, Sweden > http://www.marasystems.com/, [email protected] ------- End of Original Message -------Received on Thu Aug 07 2003 - 14:16:48 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:46 MST