Welcome! Log In Create A New Profile

Advanced

Rewrite rule for https

Posted by nichole123 
Rewrite rule for https
January 19, 2015 02:32AM
I had successfully redirected to http to https on few page of my site by following code in default.conf (nginx)

location ~ /my-account {
if ($scheme = 'http') {
rewrite ^ https://$host$uri;
}
}

but i would like to https to http except my account page so please suggest the code for ssl.conf.



Edited 1 time(s). Last edit at 01/19/2015 02:34AM by nichole123.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready