[squid-users] Squid 4 %R in deny_info

Amos Jeffries squid3 at treenet.co.nz
Sat Apr 28 23:20:04 UTC 2018


On 29/04/18 09:57, Rick Ellis wrote:
> Before trying squid 4 this worked as intended:
> 
> acl PORT80 myport 80

FYI: That ACL type is deprecated because it is so unreliable. Use
myportname (Squid listening host/IP:port or name= parameter) or
localport (the src-port from TCP) , depending on which is more
appropriate for your needs.

> acl MYSITE dstdomain www.domain.com
> http_access deny PORT80 MYSITE
> deny_info 301:https://www.domain.com%R MYSITE
> 
> For 4.0.24 the %R is always blank. So all redirected go to the root of
> the website. Is there something else I should be doing or is this a bug?
> 

That seems to be a bug. I think I can already see what is causing it, if
you open a bug report I'll attach a test patch there for you.

Amos


More information about the squid-users mailing list