[squid-users] Need help with multiple web server reverse proxy

2011-07-05 Thread Robin Bonin
I have a squid reverse proxy working for all the domains that I
specify in the squid.conf file. I would like to add an additional
default rule, if the domain does not match one of the known domains.

I am mapping the domains to the particular servers using the following
config lines.

> cache_peer 10.10.20.15 parent 80 0 no-query no-digest originserver 
> name=lamp_server login=PASS
> acl sites_lamp dstdomain (list of domain names here)
> cache_peer_access lamp_server allow sites_lamp

is there an additional acl line that I can use for "other"?


Re: [squid-users] Need help with multiple web server reverse proxy

2011-07-05 Thread Robin Bonin
My goal is to get a handful of domains redirected to a lamp server and
the rest defaulted to my windows server.

I tried adding all to the windows server cache_peer_access line, then
all traffic went to my windows server. I also tried playing with the
position of that line. Seem like no matter where it is, when I have
all in there, all traffic is redirected there.



On Tue, Jul 5, 2011 at 3:06 PM, Kinkie  wrote:
> On Tue, Jul 5, 2011 at 9:58 PM, Robin Bonin  wrote:
>> I have a squid reverse proxy working for all the domains that I
>> specify in the squid.conf file. I would like to add an additional
>> default rule, if the domain does not match one of the known domains.
>>
>> I am mapping the domains to the particular servers using the following
>> config lines.
>>
>>> cache_peer 10.10.20.15 parent 80 0 no-query no-digest originserver 
>>> name=lamp_server login=PASS
>>> acl sites_lamp dstdomain (list of domain names here)
>>> cache_peer_access lamp_server allow sites_lamp
>>
>> is there an additional acl line that I can use for "other"?
>
> "all" will do, just place it at the end of your cache_peer_access lines.
>
> --
>     /kinkie
>


Re: [squid-users] Need help with multiple web server reverse proxy

2011-07-05 Thread Robin Bonin
Thanks, that did it, I appreciate your help.

On Tue, Jul 5, 2011 at 7:27 PM, Amos Jeffries  wrote:
> On Tue, 5 Jul 2011 17:41:32 -0500, Robin Bonin wrote:
>>
>> My goal is to get a handful of domains redirected to a lamp server and
>> the rest defaulted to my windows server.
>>
>> I tried adding all to the windows server cache_peer_access line, then
>> all traffic went to my windows server. I also tried playing with the
>> position of that line. Seem like no matter where it is, when I have
>> all in there, all traffic is redirected there.
>>
>
> Like this:
>  cache_peer_access lamp_server allow sites_lamp
>  cache_peer_access lamp_server deny all
>
>  cache_peer_access windows_server deny sites_lamp
>  cache_peer_access windows_server allow all
>
>
> Amos
>
>