Re: [squid-users] No to setup multiple block rules?

From: ying lcs <[email protected]>
Date: Thu, 8 Nov 2007 22:34:33 -0600

On Nov 8, 2007 9:20 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:
> > On Nov 7, 2007 7:06 PM, Amos Jeffries <squid3@treenet.co.nz> wrote:
> >>
> >> > Hi,
> >> >
> >> > Is it possible to setup multiple block rules, like this?
> >> >
> >> > acl blockfiles urlpath_regex
> >> > "/usr/local/squid/squid_redirect/blocks.files.acl"
> >> > deny_info ERR_BLOCKED_FILES blockfiles
> >> > http_access deny blockfiles
> >> >
> >> > I would like squid to serve up a different block html file for each
> >> > file type that is being blocked.
> >> >
> >> > Is that possible?
> >> >
> >>
> >> Yes. You can place any valid URI in place of ERR_BLOCKED_FILES.
> >> Squid will serve up that URI instead of the default page.
> >
> > sorry for not making my question clear.
> >
> > What I meant was, can I setup squid to do this:
> > if extension is mp3, have squid to serve FILE_1
> > if extension is jpg, have squid to serve FILE_2
> >
>
> yes, exactly as you had above, but with two different acl. One for each
> deny_info destination.
>
> If you have more than can reasonably be configured a redirector is better.
>
> Amos

Thank you for all the help!

>
>
>
Received on Thu Nov 08 2007 - 21:34:40 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST