Page MenuHomeDevCentral
Paste P201

nginx: force a redirection from http:// to https://
ActivePublic

Authored by dereckson on Jun 22 2016, 00:03.
# Force a redirection from http:// to https://
server {
listen 80;
listen [::]:80;
server_name login.nasqueron.org;
return 301 https://$host$request_uri;
}