Re: [squid-users] Confusing redirection behaviour

From: Dave Coventry <dgcoventry@dont-contact.us>
Date: Fri, 28 Mar 2008 17:05:25 +0200

Hi Amos,

On Fri, Mar 28, 2008 at 4:26 PM, Amos Jeffries wrote:
> Because the ACL to which you have attached the deny_info is only doing
> an allow. You need to use it to actually deny before the deny_info will
> work.
>
> Try:
> http_access deny !lan

Okay, I'll give it ago. Is that instead of "http_access allow lan"?
It's a shame I didn't get this until after I'd left work; I'll have to
wait until Monday, I guess.

> > url_rewrite_program to redirect to my login page. The interesting
> > thing here is that if I redirect as follows:
> > --
> > print "302:http://192.168.60.254/cgi-bin/auth.cgi\n"
> > --
> > Then I get an error message which says "Error the requested URL could
> > not be retrieved." as the root has been removed from the path.
> > (see http://davec.uklinux.net/Squid3.0-HEAD.jpg )
> >
> > But, if I put a slash in front of the redirection URL:
> > --
> > print "302:/http://192.168.60.254\n"
> > --
> > then Squid attempts to redirect me to the originally requested URL
> > with /http://192.168.60.254/ appended.
> > (see http://davec.uklinux.net/Redirectionerror.jpg )

Do you have any idea what's happening as regards the
"url_rewrite_program" directive?
Received on Fri Mar 28 2008 - 09:05:30 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT