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;
}
}```
This block redirects all http requests to https
```
server {
listen ย ย ย ย 80;
if ($http_x_forwarded_proto != "https") {
rewrite ^(.*) https://$host$1 permanent;
}
}```