[squid-users] Redirection not work properly

budsz budiyt at gmail.com
Mon Jun 15 10:28:44 UTC 2015


Hi,

I use squid 3.5.5, in squid 2.7 series this problem doesn't show.

in squid.conf
url_rewrite_program /usr/local/libexec/jesred
url_rewrite_children 30

in jesred, redirect.rules contain something like this:
regex   ^.*/(.*)_chrome_installer\.exe$
http://files.example.net/rdr/43.0.2357.124_chrome_installer.exe

in webserver, showing error log, which is missing filename, of cause
produce 404 (page not found error).

xxx.xxx.xxx.xxx files.example.net - [15/Jun/2015:17:01:23 +0700] "GET
/rdr/43.0.2357.124_chrome_installer.exeyyy.yyy.yyy.yyy/pcbill.example.net-GET
HTTP/1.1" 404 345 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36"

The right filename is: "43.0.2357.124_chrome_installer.exe" NOT
"43.0.2357.124_chrome_installer.exeyyy.yyy.yyy.yyy/pcbill.example.net-GET"

Anyone have suggestion for this issue?

Thank you

-- 
budsz


More information about the squid-users mailing list