Page MenuHomeDevCentral

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

Authored By
dereckson
Jun 22 2016, 00:03
Size
201 B
Referenced Files
None
Subscribers
None

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

# Force a redirection from http:// to https://
server {
listen 80;
listen [::]:80;
server_name login.nasqueron.org;
return 301 https://$host$request_uri;
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37430
Default Alt Text
nginx: force a redirection from http:// to https:// (201 B)

Event Timeline