[squid-users] url rewriting with squid 2.6

From: Travis Derouin <travis@dont-contact.us>
Date: Wed, 23 Aug 2006 12:21:16 -0400

Hi,

We have been doing url rewriting with Squid 2.5 with success so far,
but we're having issues getting it to work on 2.6. We have a few
hostnames (wikihow.net, wikihow.org) that we would like 301 redirected
to wikihow.com, and we have 2 back-end apache servers. I've played
around with forceddomain for the cache_peer settings, turning it on
and off and it doesn't seem to do anything for our situation.

I've also copied over our previously working redirector script and set
it up as url_rewrite_program, and it's not being called (I verified
this by putting some logging statements in redirect.pl and nothing is
being written to the log, although I can see it running when I do a ps
-aux).

here are some settings we've been using:

url_rewrite_program /usr/local/squid2.6/sbin/redirect.pl

http_port 80 defaultsite=www.wikihow.com
#http_port 80
#cache_peer 10.234.169.204 parent 80 0 no-query originserver
round-robin forceddomain=www.wikihow.com
#cache_peer 10.234.169.201 parent 80 0 no-query originserver
round-robin forceddomain=www.wikihow.com
cache_peer 10.234.169.204 parent 80 0 no-query originserver round-robin
cache_peer 10.234.169.201 parent 80 0 no-query originserver round-robin

acl port80 port 80
acl mysites dstdomain www.wikihow.com
http_access allow mysites port80

Any suggestions?
Travis
Received on Wed Aug 23 2006 - 10:21:30 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT