Than you for your answer. Finally I do not like Squirm for this case since I
need the page to not be cached. Thefore my idea is to use a specific
cache_peer for any domain different than the main one in order to (1st)
point all them to the main one and (2nd) avoid the use of an external
redirector. Something like this:
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 172.20.1.4 parent 80 0 no-query no-digest originserver
name=allredirects
acl maindomain dstdomain !www.my.domain
cache_peer_access allredirects allow maindomain
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]
This should work, don't you think?
-- 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-tp3815289p3861956.html Sent from the Squid - Users mailing list archive at Nabble.com.Received on Sat Oct 01 2011 - 01:48:59 MDT
This archive was generated by hypermail 2.2.0 : Sat Oct 01 2011 - 12:00:03 MDT