Ops! Thank you so much Maxim. You are right! Reading your response again, I
just figured it out. Adding the following block solved the issue:
server {
server_tokens off;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name learnmyway.net;
# Hardened SSL
include /path/to/snippets/hardened-ssl;
ssl_certificate /path/to/certs/learnmyway.net.pem;
ssl_certificate_key /path/to/keys/learnmyway.net.pem;
ssl_trusted_certificate /path/to/certs/learnmyway.net.pem;
return 301 https://www.$server_name$request_uri; # enforce www
}
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,269263,269381#msg-269381
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx