[squid-users] Re: 301 redirection with Squid based on URL (is Squirm the fastest way?)

From: Manuel <manuelgarcia_at_trashmail.net>
Date: Fri, 30 Sep 2011 18:53:04 -0700 (PDT)

Forget about the previous code, there was some errors. Something like this is
my idea to deal with the redirections:

cache_peer 172.20.1.3 parent 80 0 no-query no-digest originserver
name=mainweb
acl maindomain dstdomain www.my.domain
cache_peer_access mainweb allow maindomain
cache_peer_access mainweb deny all

cache_peer 172.20.1.4 parent 80 0 no-query no-digest originserver
name=allredirects
acl otherdomains dstdomain !www.my.domain
cache_peer_access allredirects allow otherdomains
cache_peer_access allredirects deny all

And I will use apache with mod_rewrite in that cache_peer in order to avoid
caching by the browsers:
RewriteRule ^/(.*)$ http://www.my.domain/$1 [R=301,L,E=nocache:1]

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/301-redirection-with-Squid-based-on-URL-is-Squirm-the-fastest-way-tp3815289p3861963.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sat Oct 01 2011 - 01:53:05 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 01 2011 - 12:00:03 MDT