nginx rewrite to https

This block redirects all http requests to https
server {
listen Β  Β  Β  Β  80;
if ($http_x_forwarded_proto != "https") {
rewrite ^(.*) https://$host$1 permanent;


You should go to about section on this site.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.