RE: [squid-users] Reverse proxy redirector

From: Brad Taylor <[email protected]>
Date: Wed, 2 Feb 2005 15:41:58 -0500

>> Thanks, the redirector works now but $url returns the back end server
to
>> the client, bypassing the squid proxy altogether. How can I prevent
>> this?

>Huh? This just sends back to the client a redirection HTTP message for
>the same URL that it gave to the reverse proxy with https instead of
>http. It shouldn't be sending anything else.

For some reason it is not. It is changing the http to https but
changing the rest to what ever the value of httpd_accel in the
squid.conf file. When ever I change that value I get redirected to the
changed value which is the back end server and bypasses the proxy. Any
ideas on what I could try?

> > I have a redirector setup on my reverse squid proxy to change all
http
> > requests to https. But it doesn't seem to be working. Here is the
> > script:
> >
> > #!/usr/bin/perl
> > $|=1; #Don't buffer output.
> >
> > while(<>) #Infinite loop. running as a daemon
> > {
> > $url=(split)[0];
> > $url=~ s/^http:/https:/;
> > print "$url\n";
> > }
> >
> > See any reason why this will not redirect http to https?
>
> If you want to send a redirect to the client the script has to return
> print "302:$url\n";
>
>
> Kinkie
>
>
Received on Wed Feb 02 2005 - 13:41:59 MST

This archive was generated by hypermail pre-2.1.9 : Tue Mar 01 2005 - 12:00:01 MST