Search squid archive

Old squid redirect

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

 



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 :

acl Mobile browser -i
(^((SO|ha|Se|[m-p]{2})(NIM|ier|ndo|[h-k]{2}a)|(SA|UP|Ph|Er|Bl|So|Mo|po|fr)(MSU|\.Br|ili|ics|ack|nyE|bil|rta|omp)(NG|owse|ps|so|Berr|rics|eExp|lmmm|assc)|(MO|Pa|HT|EZ)(T-|lm|C|OS)|([O-Q][a-d]L\d{2}[a-z]{2}\d+|S(EC|GH|IE)|LG)))|([l-p]{2}[x-z]([(h-m)]|a){4}\/((1\.22)|([45]\.0).*?(ProF|win|pal|we|H|ip|an|sym)(iLE.+m|dows|msou|b|TC_|ho|dr|bia)(IDp|\sce|rce|os|HD\d|ne|oid|n\s*os)))|((q|O|U|SZ)(q|ww|p|O|i)(v|dv|e|ds|OO)(Q|W|R|OO|Z)(V|PP|YY|A).*?\s[k-p](in|OB)[h-j])
acl site dstdomain www.MyWebPage.com
http_access deny site Mobile
deny_info http://wap.mobilepage.mobi?__h=%{HTTP_HOST}&__p=%{REQUEST_URI}&%{QUERY_STRING}
Mobile


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

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

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?

Thanks a million,

Adam


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

  Powered by Linux