[squid-users] One more question on redirects - hopefully more clear

From: James Wenzel <jwenzel@dont-contact.us>
Date: Fri, 9 May 2008 10:47:41 -0400

Hello,

   Ok I have moved from squirm to a perl redirect. My squid.conf looks
like this

....top stuff removed ....
redirect_program /usr/local/squid/etc/redirector
redirect_children 10
visible_hostname MYSITE
http_port 8001 accel defaultsite=www.mysite.com:8001
cache_peer 10.1.140.202 parent 8001 0 no-query originserver name=auth

My redirector looks like this

#!/usr/bin/perl
$|=1;
while (<>) {
     s@http://www.mysite.com:8001@http://www.mysite.com:8001/OA_HTML/US/ICXINDEX_BOL.htm@
;
     print;
}

when I start up squid and go to

http://mysite.com:8001 I get

Not Found
The requested URL /OA_HTML/US/ICXINDEX_BOL.htm/ was not found on this
server.

in the browser. and

TCP_MISS/404 484 GET http://www.mysite.com:8001/ - FIRST_UP_PARENT/
auth text/html

Please tell me what I am doing wrong.

Jamie

James Wenzel
Enterprise Resource Providers
www.enterpriserp.com
716 310 8236
Received on Fri May 09 2008 - 14:47:49 MDT

This archive was generated by hypermail 2.2.0 : Tue May 13 2008 - 12:00:03 MDT