Re: [squid-users] DNS configuration

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Tue, 22 Jul 2008 22:05:32 +0200

On tis, 2008-07-22 at 01:53 -0700, elsergio wrote:

> Hi Henrik,
>
> - http_port 80 accel vhost # accel vhost? what is used for?

accel vhost means reverse proxy with host/domain based support using the
Host header to figure out the requested sitename.

> - allways_direct allow all #do I need something like acl all src
> 0.0.0.0/0.0.0.0 ?

Yes.

> For the option A (with dns server). If the dns server's IP is 192.168.10.10
>
> dns_nameservers 192.168.10.10 #is this the way to configure it?

One way. The other /etc/resolv.conf.

> For the option B (squid will be in charge of the logics): If the web
> server's IP's are wsIP1, wsIP2 and wsIP3
>
> cache_peer wsIP1 parent 80 0 no-query originserver name=S1 round_robin
> cache_peer wsIP2 parent 80 0 no-query originserver name=S2 round_robin
> cache_peer wsIP3 parent 80 0 no-query originserver name=S3 round_robin
>
> acl S1_domains dstdomain site.domain
> acl S2_domains dstdomain site.domain
> acl S3_domains dstdomain site.domain
>
> cache_peer_access allow S1 S1_domains
> cache_peer_access allow S2 S2_domains
> cache_peer_access allow S3 S3_domains
>
> would this e the way to set it?

Yes, that's one way. There is more ways depending on how you want Squid
to distribute the requests among the servers.

Regards
Henrik

Received on Tue Jul 22 2008 - 20:05:38 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 23 2008 - 12:00:05 MDT