Search squid archive

url rewriting with squid 2.6

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

 



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

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

  Powered by Linux