RE: [squid-users] Custom error message when authentication fails

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 21 Jan 2003 17:04:22 +0100

Yes.

If you want to provide a custom error message is someone cancels the
authentication then just use deny_info on the proxy_auth acl name.

If you want custom error messages per different group of users or
content they try to access then you need to have http_access deny lines
denying them access, and then use deny_info on the last acl name of
these lines..

Regards
Henrik

tis 2003-01-21 klockan 14.03 skrev warren, anthony:
> So am I able to have a custom error message appear if someone does not
> authenticate successfully for download .exe's ?
>
> Anthony
>
>
> -----Original Message-----
> From: Henrik Nordstrom [mailto:hno@squid-cache.org]
> Sent: 20 January 2003 18:25
> To: warren, anthony
> Cc: squid-users@squid-cache.org
> Subject: RE: [squid-users] Custom error message when authentication fails
>
>
> You never deny exe.. you only allow passwd to download them..
>
> Regards
> Henrik
>
>
> mån 2003-01-20 klockan 13.28 skrev warren, anthony:
> > Hi,
> >
> > This is what I have in my squid.conf. What I should receive, if my
> > understanding is correct, is ERR_DOWNLOAD_DENIED - however, what I
> > actually receive is ERR_CACHE_ACCESS_DENIED.
> >
> > acl exe urlpath_regex \.exe$
> > deny_info ERR_DOWNLOAD_DENIED exe
> > acl all src 0.0.0.0/0.0.0.0
> > acl passwd proxy_auth
> > http_access allow exe passwd
> > http_access allow all
> >
> > Am I missing something here?
> >
> > Regards,
> >
> > Anthony Warren
> >
> >
> > -----Original Message-----
> > From: Henrik Nordstrom [mailto:hno@squid-cache.org]
> > Sent: 17 January 2003 19:36
> > To: warren, anthony
> > Cc: squid-users@squid-cache.org
> > Subject: Re: [squid-users] Custom error message when authentication fails
> >
> >
> > "warren, anthony" wrote:
> > >
> > > Hi,
> > >
> > > I am trying to configure a custom error page to be shown when
> > > authentication fails. I have successfully created a custom error that
> > > is used with a deny acl, but I cannot get it to work after
> > > authentication failure.
> > >
> > > Is this possible, if so how?
> >
> > Works here.. just
> >
> > deny_info ERR_YOUR_PAGE_NAME aclname
> >
> > where aclname is your first acl requiring authentication in
> > http_access..
> >
> > Regards
> > Henrik

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Tue Jan 21 2003 - 09:04:28 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:12:45 MST