/ Zope / Apsis / Pound Mailing List / Archive / 2005 / 2005-03 / Redirecting http requests to https

[ << ] [ >> ]

[ Taking a backend out of service / "Daniel ... ] [ Using Squid to map non-SSL to SSL / Yusuf ... ]

Redirecting http requests to https
"Daniel ." <constantine(at)soon.com>
2005-03-17 03:51:45 [ FULL ]
Hi, 
 
Does Pound support redirecting of requests? 
 
I'm looking at whether we can do away with apache which currently redirects
clients from http://blah.com/ to https://blah.com/ and https://other.com/ to 
http://other.com/ 
 
Does anyone know of any minimal utilities to redirect all connections on http
(https) to https (http)? 
 
Cheers 
Daniel [...]

RE: Redirecting http requests to https
"John Snowdon" <J.P.Snowdon(at)newcastle.ac.uk>
2005-03-17 09:42:23 [ FULL ]
I couldn't figure out an easy way to do this other than to redirect http
addresses to apache, which then rewrites them to https and back to
pound... not nice. Sounds the same as what you are already doing.

There are stand alone servers out there which will do that though, its
just we have more experience with Apache here at Newcastle.

 John Snowdon - IT Support Specialist
-==========================================-
 School of Medical Education Development 
 Faculty of Medical Sciences Computing
 University of Newcastle
[...]

RE: Redirecting http requests to https
"Daniel ." <constantine(at)soon.com>
2005-03-17 21:00:44 [ FULL ]
Hi, John. 
 [...]
 
Well, we're not using pound yet so it's all apache at the moment.  But if we
use pound the only useful thing that apache is doing is these redirects, a few
rewrites 
and the graceful removal of backends as mentioned in another mail. 
These redirects are a necessity, the others we could live without if need be. 
 [...]
 
I really want something that is just mod_rewrite.  Even if it can only issue a
301 with http changed to https I'd be happy for the moment. 
Seems like overkill to have a full-on web server just to do this... 
 
Thanks 
Daniel [...]

Re: Redirecting http requests to https
Michal <michalg(at)gmail.com>
2005-03-17 22:48:16 [ FULL ]
On Thu, 17 Mar 2005 15:00:44 -0500, Daniel . <constantine(at)soon.com>
wrote:[...]

Maybe this will come in handy:

  http://michal.guerquin.com/code/redirect.py

I havn't had time to properly document and describe it on the site. It
does the http->anything redirect. It doesn't listen on :443 (HTTPS),
though I'd expect making it do that would not be difficult. I've used
it in production for a month while transitioning away from a server.

Cheers,

-Michal

Re: Redirecting http requests to https
"Daniel ." <constantine(at)soon.com>
2005-03-28 23:23:29 [ FULL ]
Hi, Michal.  
  
Thanks for the link to the script.  
I also wandered across Redirex [ http://www.fourmilab.ch/webtools/redirex/
] which looks to do similar things.  
Haven't had a chance to try either of them out yet...  
  
There's also a redirector for Squid called Squirm [ http://squirm.foote.com.au/ ] which,
while not quite the same sort of solution, has some performance tricks that  
could be a useful enhancement for a redirect.py or Redirex type solution.  
  
Cheers  
Daniel  
  [...]
   [...]

MailBoxer