Require SSL for specific URLS

jorgelo nginx-forum at
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://



Posted at Nginx Forum:,24495,24495#msg-24495

More information about the nginx mailing list