Search squid archive

RE: name resolution problems (/etc/hosts)

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

 



> 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@xxxxxxxxxxxxx] 
Enviado el: jueves, 19 de junio de 2008 5:37
Para: Henrik Nordstrom
CC: Donoso Gabilondo, Daniel; squid-users@xxxxxxxxxxxxxxx
Asunto: Re:  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



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

  Powered by Linux