Search squid archive

RE: [squid-users] Reverse proxy redirector

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please don't top-quote. It makes threading harder to follow.


On Wed, 2005-02-02 at 10:47 -0500, Brad Taylor wrote:
> 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.

	Kinkie

> -----Original Message-----
> From: Kinkie [mailto:kinkie-squid@xxxxxxxxx] 
> Sent: Wednesday, February 02, 2005 3:19 AM
> To: squid-users@xxxxxxxxxxxxxxx
> Subject: Re: [squid-users] Reverse proxy redirector
> 
> On Tue, 2005-02-01 at 11:02 -0500, Brad Taylor wrote:
> > 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
> 
> 

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux