The dstdomain directive solved my problem.... Thanks a million Rod!
Regards,
Greg
Or even better:
acl special_url dstdomain .abc.com
-----Original Message-----
From: Rob H [mailto:rob.hadfield@gmail.com]
Sent: Monday, 6 September 2004 2:23 PM
To: squid-users@squid-cache.org
Subject: Re: [squid-users] Help with ACL's
On Mon, 6 Sep 2004 14:50:30 +1000, Rob H <rob.hadfield@gmail.com> wrote:
> On Mon, 6 Sep 2004 13:10:29 +0930, Greg Darby
<greg.darby@ramelec.com.au> wrote:
> > Hi,
> >
> > I have a complex ACL running on Squid for which i would like some
help
> > to find out how i can allow websites and their sub domains to be
> > allowed..
> >
> > acl special_client src 192.168.10.5
> > acl special_url url_regex ^http://www.abc.com
> > http_access allow special_client special_url
> > http_access deny special_url
> >
> > The above works fine and allows access to the website above for the
> > client shown above but i want to be able to also allow all sub
domain
> > for the website abc.com. How can i do this without typing in every
> > website on the same domain? eg http://ad.abc.com,
http://abdcg.abc.com
> >
>
> I think:
>
> acl special_url url_regex \.abc\.com
>
> Would do it.
>
> ---
> Regards,
> Rob Hadfield.
>
Or even better:
acl special_url dstdomain .abc.com
Take a look at the docs at:
http://www.squid-cache.org/Doc/FAQ/FAQ-10.html#ss10.1
Disclaimer :
This email and it's attachments are confidential. If you are not the intended recipient you must not disclose, distribute or re-produce any of it's contents as it may be a breach of confidentiality. If you have received this message in error, please advise us immediately by return email and delete the entire document. Ramelec Pty Ltd cannot guarantee the security of any information electronically transmitted across the Internet. Ramelec Pty Ltd does not accept responsibility for improper or incomplete information within this message, any delay in it's receipt and that this message is free of any known Virus. The address from which this email has been sent is strictly intended for business email only and Ramelec Pty Ltd reserves the right to monitor / alter it's contents at it's discretion.
This message has been scanned for the presence of known Virus's by Gordano's GMS Virus Protection Package.
Received on Sun Sep 05 2004 - 23:39:12 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:02 MDT