Re: [squid-users] Old squid redirect

From: Amos Jeffries <>
Date: Wed, 05 May 2010 00:38:10 +0000

On Tue, 4 May 2010 18:06:30 +0300, Adam Squids <>
> Hey all,
> Using an old Squid 2.5.S10 setup. Trying to redirect mobile
> user-agents to a WAP company that handles the mobile version of my
> site.
> Read a bit about how to do this and got something like :

"like"? or "actual"?

> acl Mobile browser -i

Very complex. Could be very easy to break that. Also the -i means case is

With the troubles you seem to have understanding Squid. I'd make that a
simple list of lines like these:

acl Mobile browser Nokia
acl Mobile browser Symbian
... etc.

'tis slow to process, but you can optimize _after_ you know if the whole
setup works.

> acl site dstdomain
> http_access deny site Mobile
> deny_info
> Mobile

Squid is not Apache. It does not accept Apache macro language.

  deny_info Mobile

Note how the host name and query string cannot be passed in separately.
%s is the full original URL.

> I know that the regex seems odd and insane, but it works (in Apache's
> conf that works / tested great).

Again. Squid is not Apache. They support different expression types.

Working in one does not guarantee working in the other.

> Once I did that, nothing from my original configs worked, had to
> rollback and remove that snippet.


Sounds like you are repeating the same habit you showed earlier. Changing
many things, telling us about one and blaming every issue on that one.

> A) How can I make this work with my current 2.5 ? - I also have a
> local Apache that gets requests redirected from Squid, but I rather
> not use it.
> B) I am about to upgrade to Squid 2.7, will that become easier then?

For most people. For you I'm not so sure.

Received on Wed May 05 2010 - 00:38:13 MDT

This archive was generated by hypermail 2.2.0 : Wed May 05 2010 - 12:00:04 MDT