Re: [squid-users] Redirection by backend server

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

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

Sameer Joshi

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

Hi

I tried adding following to the configuration:

************************************************************
acl abc_domain dstdomain www.abc.com
acl xyz_domain dstdomain www.xyz.com

cache_peer_access abc.mydomain.com allow abc_domain
cache_peer_access xyz.mydomain.com allow xyz_domain

************************************************************

Also removed all entries from /etc/hosts

Result: not working.
User gets "Unable to forward request at this time"
Squid log shows "Failed to select source for 'http://www.abc.com' "

(Totally confused myself now)
Sameer Joshi

-----Original Message-----
From: "Henrik Nordstrom" <henrik@henriknordstrom.net>
Sent: Mon, January 8, 2007 4:13 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 13:46 +0530 skrev Sameer Joshi:
> Trying to work 2 webservers behind Squid 2.6 stable 4 reverse proxy :
>
>
> My (non-working) relevant config :
>
>
> www.abc.com, www.xyz.com: These are urls given to users
> 1.2.3.4: actual ip address of the server www.abc.com or abc.mydomain.com
> 5.6.7.8: actual ip address of the server www.xyz.com or xyz.mydomain.com
> 1.1.1.1: ip address of the reverse proxy
>
> **********************SQUID.CONF********************************************************
>
> http_port 80 vhost
>
> cache_peer www.abc.com parent 80 0 originserver
> cache_peer www.xyz.com parent 80 0 originserver

You also need cache_peer_access/cache_peer_domain telling Squid which
sites is on which peer...

> **********************/ETC/HOSTS********************************************************
> /etc/hosts contents:

Not needed on the Squid server. You can specify the IP in cache_peer..

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"

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 - 04:54:07 MST

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