Re: [squid-users] SQUID3 configuration in accelerator mode (reverse proxy)  http and https

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 17 Jul 2006 04:44:58 +0200

mån 2006-07-17 klockan 04:33 +0200 skrev gwaa:

> http_access allow our_networks
> http_access allow all
> http_port 3128 vhost vport=80 protocol=http defaultsite=www.domain1.com
>
> acl http proto http
> acl port80 port 80
> acl domain2_com dstdomain .domain2.com
> acl domain1_com dstdomain .domain1.com
>
> cache_peer 192.169.2.2 parent 80 0 no-query originserver name=domain1
> cache_peer_access domain1 allow domain1_com
>
> cache_peer 192.168.2.32 parent 80 0 no-query originserver name=domain2
> cache_peer_access domain2 allow domain2_com
>
> http_access allow http port80 domain2_com domain1_com
> always_direct allow domain2_com domain1_com port80
>
> #misc config
> cache_effective_user squid
> cache_effective_group squid
> dns_nameservers 192.168.2.2 192.168.2.4
> visible_hostname dns.domain1.com
> cache_mgr webmaster@domain1.com
> mail_from webmaster@domain1.com

You are still mixing both cache_peer and always_direct. Don't do that.
Delete one of the two directives, depending on how you want to control
request forwarding.

I would recommend deleting the always_direct line.

Regards
Henrik

Received on Sun Jul 16 2006 - 20:45:01 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Aug 01 2006 - 12:00:01 MDT