Search squid archive

Squid appears to be ignoring url_rewrite_program

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

 



Hello folks,

I am trying to use a URL rewriter program to redirect client requests for certain URLs elsewhere. I found this on github which seems to do what I need:

https://github.com/rchunping/squid-urlrewrite

Running this on the command line as shown in the instructions appears to show it doing as I ask.

Although squid starts and spawns the rewrite program children as requested, it does appear to be sending requests to them. A request for a URL which should be redirected is simply proxied as normal, rather than a redirect being returned. It's as though squid is simply not using the rewriter program at all.

I'm using squid 5.7 as packaged by Debian, and my entire squid.conf is as follows:

------------------------
url_rewrite_program /etc/squid/squid-urlrewrite
url_rewrite_children 20 startup=10 idle=10 concurrency=10000
pinger_enable off

acl alb_subnets src 10.248.4.0/24
acl alb_subnets src 10.248.5.0/24
acl alb_subnets src 10.248.6.0/24

acl ssl_ports port 443
acl safe_ports port 80
acl safe_ports port 443

http_access deny !safe_ports
http_access deny CONNECT !ssl_ports

http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access allow alb_subnets

http_access deny all

http_port 3128

coredump_dir /var/spool/squid
-------------------------

Have I missed something to enable use of the rewriter? Are there specific debug options I can use that will show me what squid is doing, if anything?


Regards

Martin.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users



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

  Powered by Linux