Re: [squid-users] No SSL to SSL redirection problem

From: John Doe <jdmls_at_yahoo.com>
Date: Mon, 23 Feb 2009 07:55:26 -0800 (PST)

> I’m using Squid 2.5-STABLE14 with SSL support. I need to rewrite every url > with “http://...%e2%80%9c request to “https://...%e2%80%9d so I use this script at the > redirect_program line: Old version... ^_^ > #!/usr/bin/perl > > $|=1; > > while (<>) > { > @X = split; > $url = $X[0]; > > if ($url =~ /^http:\/\//) > { > $url =~ s/http/https/; > print "301:$url\n"; > exit; > } > else > { > print "$url\n"; > exit; > } > } I think you should remove the 2 exits... > The problem is that access.log shows every GET with > “http://...%e2%80%9d, even after be matched with script, and makes an infinite loop > requests (the script redirects to https but the Squid take it as http and > make the redirection again). What I can do? How can I make the “http” to > “https” to work fine? What is your acl for the rewrite? Maybe that would prevent the loops... url_rewrite_access allow !SSL_ports JD
Received on Mon Feb 23 2009 - 15:55:45 MST

This archive was generated by hypermail 2.2.0 : Mon Feb 23 2009 - 12:00:01 MST