I have a virtual host for a wiki site but I have problems. I have two domains but certbot won't add any others. What is wrong?
This is the virtual host code:
server {
root /var/www/wikifamily;
index index.php;
server_name f0xwikis.rfx.fi
www.f0xwikis.rfx.fi
foxwikis.rfx.fi
www.foxwikis.rfx.fi;
location ~* \.php$ {
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/r3df0x.com-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/r3df0x.com-0001/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 = www.f0xwikis.rfx.fi) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = f0xwikis.rfx.fi) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name f0xwikis.rfx.fi
www.f0xwikis.rfx.fi
foxwikis.rfx.fi
www.foxwikis.rfx.fi;
return 404; # managed by Certbot
}
This is the code I use in the certbot script for the command:
certbot --nginx\
-d foxwikis.rfx.fi\
-d www.foxwikis.rfx.fi\
-d f0xwikis.rfx.fi\
-d www.f0xwikis.rfx.fi\
-d r3df0x.com\
-d www.r3df0x.com\
-d analytics.r3df0x.com\
-d mail.dns.blacklist.r3df0x.com\
-d cccrwiki.r3df0x.com\
-d www.cccrwiki.r3df0x.com\
-d coc.r3df0x.com\
-d code-of-conduct.r3df0x.com\
-d codeofconduct.r3df0x.com\
-d conservativesjw.r3df0x.com\
-d global.r3df0x.com\
-d guns.r3df0x.com\
-d i.r3df0x.com\
-d metawiki.r3df0x.com\
-d www.metawiki.r3df0x.com\
-d opennic.r3df0x.com\
-d www.opennic.r3df0x.com\
-d resources.r3df0x.com\
-d shitlordsinaction.r3df0x.com\
-d sturmovik.r3df0x.com\
-d www.sturmovik.r3df0x.com\
-d template.r3df0x.com\
-d thesexynerd.r3df0x.com\
-d cccrwiki.rfx.fi\
-d www.cccrwiki.rfx.fi\
-d metawiki.rfx.fi\
-d www.metawiki.rfx.fi\
-d opennic.rfx.fi\
-d www.opennic.rfx.fi\
-d sturmovik.rfx.fi\
-d www.sturmovik.rfx.fi\
-d voynawiki.rfx.fi\
-d www.voynawiki.rfx.fi\
-d rfx.fi\
-d www.rfx.fi\
This is the page: https://www.f0xwikis.rfx.fi/
I get a "not secure" notice on Chrome even though it says the cert is valid and the domains that use o instead of 0 are both invalid.
This is the error:
(E)xpand/(C)ancel: e
Renewing an existing certificate for foxwikis.rfx.fi and 38 more domains
Performing the following challenges:
http-01 challenge for foxwikis.rfx.fi
http-01 challenge for www.foxwikis.rfx.fi
Waiting for verification...
Challenge failed for domain foxwikis.rfx.fi
Challenge failed for domain www.foxwikis.rfx.fi
http-01 challenge for foxwikis.rfx.fi
http-01 challenge for www.foxwikis.rfx.fi
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: foxwikis.rfx.fi
Type: unauthorized
Detail: Invalid response from
http://foxwikis.rfx.fi/.well-known/acme-challenge/MW0nZZWZeLW1CLLS6v5rlXWUS5CAnSTMFe9-oJe9tMY
[192.241.132.174]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404
Not Found</h1></center>\r\n<hr><center>"
Domain: www.foxwikis.rfx.fi
Type: unauthorized
Detail: Invalid response from
http://www.foxwikis.rfx.fi/.well-known/acme-challenge/m5GkdHkr6W0lFn36nVlN7fCFoSOJuwrCfne8wc4himU
[192.241.132.174]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404
Not Found</h1></center>\r\n<hr><center>"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
Those domains work because they navigate to the page fine.