Hi all,
Banging my head against the wall trying to figure out this error.
This is for a fresh brand new install on my own private server of:
Ubuntu20.04LTS
nginx version: nginx/1.18.0 (Ubuntu)
certbot 1.13.0 snap
Looks like certbot is functioning properly as it is created new certs.
This is the first part of my nginx conf file:
server {
if ($host = www.domain2.com) {
return 301 https://$host$request_uri;
}
if ($host = domain2.com) {
return 301 https://$host$request_uri;
}
if ($host = www.domain1.com) {
return 301 https://$host$request_uri;
}
if ($host = domain1.com) {
return 301 https://$host$request_uri;
}
listen 80;
listen [::]:80;
server_name domain1.com www.domain1.com domain2.com www.domain2.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name domain1.com www.domain1.com domain2.com www.domain2.com;
ssl_certificate /etc/letsencrypt/live/domain2.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain2.com/privkey.pem;
ssl_session_tickets off;
UFW has both 80 and 443
router firewall redirected
I can't see the forest from the trees
Any assistance would be greatly appreciated