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

_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users

Reply via email to