Ok, got a very frustrating problem. I can serve pages just fine with a non-secure (normal http) connection. But if I go to https:// my webserver gives only 404s.
My nginx conf looks like this:
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
http {
server {
listen 80;
ssi on;
server_name 193.237.138.111;
server_name winged-horse.fyi;
location / {
root /14tb/public/web/winged_horse;
index index.html index.htm;
}
}
server {
listen 443 ssl;
ssi on;
ssl on;
ssl_certificate /etc/letsencrypt/live/winged-horse.fyi/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/winged-horse.fyi/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
server_name 193.237.138.111;
server_name winged-horse.fyi;
location / {
root /14tb/public/web/winged_horse;
index index.html index.htm;
}
}}
As you can see, the config for http and https is exactly the same, except the https server has certbot junk in it. I've been at this for 3 hours and can't see what could be causing the problem.
My domain is: winged-horse.fyi
My web server is (include version): nginx/1.27.2
The operating system my web server runs on is (include version): RHEL 9.5
I can login to a root shell on my machine (yes or no, or I don't know): yes
The version of my client is certbot 3.0.1