Tycon wrote:
> that would only work if the web server can determine if a particular
> request should be http or https, which it could do only if there was
> something in the request URI to indicate that (like the URI begnning
> with /secure for example).
>
> But what if I have an arbitrary URI (e.g. /hello/login) that should
> redirect to https, but others (e.g. /hello/logout) that should not ?
>
Regexps are fun! With nginx:
server {
....
rewrite ^(.*/login) https://example.com$1 permanent;
}
Alberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---