Re: [squid-users] Redirection by backend server

From: Sameer Joshi <sameer.joshi@dont-contact.us>
Date: Mon, 8 Jan 2007 18:57:25 +0530 (IST)

www.abc.com :Is the url given to users to access the server from internet
(this is not configured on webserver. its only in squid.conf)

abc.mydomain.com: actual server domain name (this url i use when i access
the webserver internally)

Sameer Joshi

-----Original Message-----
From: "Henrik Nordstrom" <henrik@henriknordstrom.net>
Sent: Mon, January 8, 2007 6:38 pm
To: sameer.joshi@paladion.net
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Redirection by backend server

mån 2007-01-08 klockan 17:23 +0530 skrev Sameer Joshi:
> I also tried:
>
> Replacing 'cache_peer www.abc.com parent 80 0 originserver', by
> cache_peer 1.2.3.4 parent 80 0 originserver www.abc.com
> cache_peer 5.6.7.8 parent 80 0 originserver www.xyz.com
>
> Result is that for both www.abc.com and www.xyz.com, i m served with
> www.abc.com

Did you also adjust cache_peer_access accordingly?

cache_peer 1.2.3.4 parent 80 0 originserver name=abc
acl abc_domain dstdomain abc.mydomain.com .abc.com
cache_peer_access abc alloc abc_domain

cache_peer 5.6.7.8 parent 80 0 originserver name=xyz
acl xyz_domain dstdomain xyz.mydomain.com .xyz.com
cache_peer_access xyz allow xyz_domain

Not sure what the abc.mydomain.com vs www.abc.com split is about.. what
Squid cares about is the domain requiested in the URL.

Regards
Henrik

Sameer Joshi
Paladion Networks, India
Phone: 91-22-55910513
Fax: 91-22-55913580
Mobile:91-98191-86001

http://www.paladion.net

Disclaimer:
"This e-mail message may contain confidential or proprietary information.
Do not use it if you are not the original intended recipient. As e-mail
may be altered electronically, Paladion Networks cannot guarantee the
integrity of this communication. Before opening any attachments please
recheck them for viruses and defects"
Received on Mon Jan 08 2007 - 06:27:33 MST

This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:01 MST