Hello,
I am using unbuntu 18 and using nginx reverse proxy for a domain . please advise if anything is missed here. It used to work fine until 13th, suddenlty today it stopped working. No changes on nginx or certbot
checks:
1)Certbot installed ok.
2) Nginx seems fine.
3) We are running this on aws lightsail, where i enabled port 80,443, 22
4) domain dns mapping is ok also in our domain provider
error: When i use my domain https://domain, it says. 404 Not Found . nginx/1.14.0 (Ubuntu)
details: Nginx file is here..
server {
server_name ;
root /home/ubuntu/haix-alivecore-v2/dist;
index index.html index.htm;
location / {
try_files $uri /index.html =404;
}
proxy_read_timeout 3600;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
listen 443 ssl; # managed by Certbot
ssl_protocols TLSv1.2;
ssl_certificate /etc/letsencrypt/live//fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live//privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = ) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name ;
listen 80;
return 404; # managed by Certbot
proxy_read_timeout 3600;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
}
My domain is:
I ran this command:
It produced this output:
My web server is (include version):
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):