RE: [squid-users] name resolution problems (/etc/hosts)

From: Donoso Gabilondo, Daniel <donoso.d_at_ikusi.es>
Date: Thu, 19 Jun 2008 09:21:44 +0200

> What's the error?

> What does your cache_peer line (and cache_peer_access/domain if any)
look > like?

cache_peer_domain 192.168.240.22 myserver.com
cache_peer_access myserver.com allow all

> Also ... what do you mean by '192.168.240.22:8080 as default site';
the
> public domain name of your site? back-end web server? or the
defaultsite=
> option on squid.conf http_port?

Sorry...

I am refering to http_port option. This is the squid.conf file line:

http_port 3128 accel defaultsite=192.168.240.22:8080

With this, squid Works fine, but if I replace 192.168.240.22:8080 with
myserver.com:8080 after restart squid doesn't work.

I want to use a name (/etc/hosts) and not the IP, because when the http
server fails, I can edit the /etc/hosts and change the IP to other
http_server, restart the squid and use the new http_server until the
problems of the first are solved.

Is there any better way to do this?

-----Mensaje original-----
De: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
Enviado el: jueves, 19 de junio de 2008 5:37
Para: Henrik Nordstrom
CC: Donoso Gabilondo, Daniel; squid-users_at_squid-cache.org
Asunto: Re: [squid-users] name resolution problems (/etc/hosts)

> On ons, 2008-06-18 at 18:40 +0200, Donoso Gabilondo, Daniel wrote:
>> Hello again,
>>
>> I Use Squid as a reverse Proxy with 192.168.240.22:8080 as default
site
>> and works fine, but when I put a name, and after restarting, doesn't
>> work.
>
> What's the error?
>
> What does your cache_peer line (and cache_peer_access/domain if any)
> look like?
>

Also ... what do you mean by '192.168.240.22:8080 as default site'; the
public domain name of your site? back-end web server? or the
defaultsite=
option on squid.conf http_port?

Amos
Received on Thu Jun 19 2008 - 07:21:49 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 19 2008 - 12:00:05 MDT