Re: [squid-users] problem with deny_info

From: Christoph Haas <email@dont-contact.us>
Date: Mon, 8 May 2006 17:06:08 +0200

On Mon, May 08, 2006 at 06:26:11PM +0430, power159 wrote:
> Okey ! i tried follwoing confings and its working ! with all configs (IPS)
> and all errors pages is working
>
> **********************************
> acl fullaccess src 127.1.10.5/255.255.255.255
> acl halfaccess src 127.1.10.0/255.255.255.255
> acl noneaccess src 127.0.0.1/255.255.255.255
>
> acl filter1 url_regex -i "/urls.txt"
> acl filter2 url_regex -i mysite.com
>
> deny_info ERR_HALF_ACCESS filter1
> deny_info ERR_NONE_ACCESS filter2
>
> http_access allow fullaccess
> http_access deny halfaccess !filter1
> http_access deny noneaccess !filter2
> #http_access deny all
> **********************************
>
> with this config its working but when i am useing http_access deny all at
> end of config its notworking ... :)

You are still not getting the order right. I suggest:

deny_info ERR_HALF_ACCESS halfaccess
deny_info ERR_NONE_ACCESS noneaccess

http_access allow fullaccess
http_access allow halfaccess filter1
http_access deny halfaccess
http_access allow noneaccess filter2
http_access deny noneaccess
http_access deny all

Kindly
 Christoph

-- 
Please reply to the list - not to me personally. Personal replies are ignored.
Received on Mon May 08 2006 - 09:06:12 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT