Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

Rewrite rule for https

$
0
0
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.

Viewing all articles
Browse latest Browse all 972

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>