Hi,
I am trying to setup squid redirector on squid 2.6 STABLE 16 based on
content type. i.e. if squid sees content type == text/plain redirects
to 'http://127.0.0.1/dummy.txt'.
A kind person helped me with this configuration for my needs:
acl plain_content rep_mime_type -i text/plain
redirect_program /usr/local/bin/myscript
redirector_access allow plain_content
#http_reply_access allow all
icp_access allow all
But I am still not able to get that to work.
For example, when i request 127.0.0.1/plain.txt via squid, I expect I
get the content of 127.0.0.1/dummy.txt (since squid redirect it based
on content type), but I am getting content of 127.0.0.1/plain.txt.
Here is my access.log:
1193971388.409 15 127.0.0.1 TCP_MISS/200 357 GET http://127.0.0.1/plain.txt
- DIRECT/127.0.0.1 text/plain
And when I try ' ./squidclient mgr:redirector', I get a 404 error.
Received on Fri Nov 02 2007 - 11:01:54 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:01 MST