October 12, 2017 · Server
Nginx http to https config
nginx config
listen 443 ssl;
ssl_certificate_key /path/to/cert.key;
ssl_certificate /path/to/encrypted.crt;
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
4n07hER H4x0rin9 N07e2
nginx config
listen 443 ssl;
ssl_certificate_key /path/to/cert.key;
ssl_certificate /path/to/encrypted.crt;
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}