Search squid archive

Re: Squid Rewrites

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

 



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@xxxxxxxxxxxxxxxxxxxxx
http://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