Thanks. I am the original user jy2008, i just created a new account.
So go back to where we were. I really appreciate your help. the thing is i am newbie, so i still don’t exactly know what to do after my study. this is the tutorial i followed, what is wrong with this tutorial? i guess they didn’t include intermediate cert? and this is how my server block looks as below. Is it possible for you to identify where went wrong and how to fix it, or you can show me a tutorial that does that. Greatly appreciate your help.
server {
listen 80;
server_name usorgames.net www.usorgames.net;
return 301 https://$host$request_uri;
}
server {
location ~ /.well-known {
allow all;
}
root /usr/share/nginx/html;
index index.html index.htm;
listen 443 ssl;
server_name usorgames.net www.usorgames.net;
server_name usorgames.net www.usorgames.net;
ssl_certificate /etc/letsencrypt/live/usorgames.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/usorgames.net/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:$
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security max-age=15768000;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
}