[squid-users] Squid Rewrites
Amos Jeffries
squid3 at treenet.co.nz
Sat Jun 25 05:40:09 UTC 2016
On 25/06/2016 6:39 a.m., Bidwell, Christopher wrote:
> Hi all,
>
> Just curious if you could help me figure out what the equivalent of this
> apache rule would be for squid:
>
> RewriteRule ^/dyfi/?$ http://servername.com/data/dyfi/
> [R=301,L]
>
Below, with the comments describing the meaning in context...
# the regex pattern to match on a URL-path
acl dyfi urlpath_regex ^/dyfi/?$
# these matches are not allowed to continue as-is
http_access deny dyfi
# when a dyfi match causes a deny, redirect to this URL as 301
deny_info 301:http://servername.com/data/dyfi/ dyfi
Amos
More information about the squid-users
mailing list