Require SSL for specific URLS

jorgelo nginx-forum at nginx.us
Fri Nov 20 23:44:19 MSK 2009


I'm wondering how I would go about creating a rule like this in NGINX.  

I want certain paths to require HTTPS, and redirect to https:// if the current schema is not https.

Now, to make it even better, I'm wondering if you visit a path NOT on that HTTPS required list, how would I redirect it to http://

Thanks

-Jorge

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,24495,24495#msg-24495






More information about the nginx mailing list