I don't know about using TG2 to do that (I am not experienced enough
there yet), but the simple solution I can think of is to have a
http://servername.domain configured in Apache that uses mod_rewrite to
rewrite any http URLs to https.

Something like:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^servername.domain$
    RewriteRule ^(.*)$ https://servername.domain$1 [L,R=301]

A bit of a hack, but it'll work if nobody can answer in terms of doing
it with TG2 so that your redirects are in the right place to start
with.

Simon

On Oct 5, 5:01 pm, Damien Accorsi <[email protected]> wrote:
> Hi all,
>
> I'm using TG2 as a standalone server behind an SSL apache proxy.
> Everything works fine except that all "redirect('XXX')" are redirecting
> the user to thehttp://XXXversion of the url (I'd like it to redirect
> tohttps://XXX).
>
> Is there a way to do so ?
>
> Damien.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to