Re: [squid-users] whats wrong with this url regex line

2020-01-19 Thread Brett Lymn
On Sun, Jan 19, 2020 at 10:22:56PM +1300, Amos Jeffries wrote: > > It should work without the anchor and suffix. Perhapse the URL is not > actually that string? > Yes it will work without the anchor but using an anchor can make the regex faster because it then does not have to scan the whole

Re: [squid-users] whats wrong with this url regex line

2020-01-19 Thread robert k Wild
thanks Amos #allow special URL paths acl special_url url_regex "/usr/local/squid/etc/urlspecial.txt" http_access allow special_url # #deny MIME types acl mimetype rep_mime_type "/usr/local/squid/etc/mimedeny.txt" http_reply_access allow special_url http_reply_access deny mimetype the reason why

Re: [squid-users] whats wrong with this url regex line

2020-01-19 Thread Amos Jeffries
On 18/01/20 3:51 am, robert k Wild wrote: > smashed it - > > acl special_url url_regex ^http://updater.maxon.net/server_test.* > http_access allow special_url > It should work without the anchor and suffix. Perhapse the URL is not actually that string? * any (.*) at beginning or end is

Re: [squid-users] whats wrong with this url regex line

2020-01-17 Thread robert k Wild
smashed it - acl special_url url_regex ^http://updater.maxon.net/server_test.* http_access allow special_url On Fri, 17 Jan 2020 at 14:11, robert k Wild wrote: > sorry i meant this - > > acl special_url url_regex http://updater.maxon.net/server_test > http_access allow special_url > > On Fri,

Re: [squid-users] whats wrong with this url regex line

2020-01-17 Thread robert k Wild
sorry i meant this - acl special_url url_regex http://updater.maxon.net/server_test http_access allow special_url On Fri, 17 Jan 2020 at 14:10, robert k Wild wrote: > hi all, > > really struggling with getting the url regex syntax correct, does it > accept normal url paths ie > > acl

[squid-users] whats wrong with this url regex line

2020-01-17 Thread robert k Wild
hi all, really struggling with getting the url regex syntax correct, does it accept normal url paths ie acl special_url url_regex http://updater.maxon.net/server_test http_access allow special_client special_url but it doesnt work? thanks, rob -- Regards, Robert K Wild.