So I followed this guide to set up letsencrypt ssl for nginx using the acme script, and it all worked great, I have it setup and I can access my site (wasabi.guru) via ssl, however it returns with a 404 error. When accessing my site via non-https it does not return a 404 error and is just peachy, it's only when I try to go to https://wasabi.guru
that it gives me a 404. what on earth gives?
server {
server_name wasabi.guru;
ssl on;
listen 443 ssl;
listen [::]:433 ssl;
ssl_certificate /etc/nginx/ssl/wasabi.guru.cer;
ssl_certificate_key /etc/nginx/ssl/wasabi.guru.key;
ssl_session_timeout 30m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES$
ssl_session_cache shared:SSL:10m;
ssl_dhparam /etc/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;
ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;
add_header Strict-Transport-Security max-age=31536000
access_log /var/log/nginx/wasabi.guru/ssl_access.log;
error_log /var/log/nginx/wasabi.guru/ssl_error.log
## END SSL CONFIG ##
location / {
root /usr/share/nginx/html/;
index index.html index.htm;
}
}
From what I know, and can tell, this is all correct and should just work, i've changed it a couple times and still nothing, i've looked at the ssl config thing for wasabi.guru to make sure the doc root is the same and it is. Let me be straight, im a super noob at this kind of stuff still, this is my first experience with setting up ssl and i usually just use default configs for nginx, so if theres something im missing im sure i wouldnt catch it.
Any info would be great, if theres any logs or config files that would help solve this just say so and i'll post them.
Thanks for the help.
ps: this server is running Arch Linux, which is a bad idea yes, but i live on the edge :^)