My landing-page domain is:
https://leukvanpizzajolly.nl/
I ran this command:
certbot certonly --webroot -w /var/www/www.italimporta.nl/www -d leukvanpizzajolly.nl -d www.leukvanpizzajolly.nl
It produced this output:
- success
My web server is (include version):
apche2
The operating system my web server runs on is (include version):
Debian
My hosting provider, if applicable, is:
nvt
I can login to a root shell on my machine (yes or no, or I don't know):
yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
I try to create a working https domain certificate for https://leukvanpizzajolly.nl/
It needs to direct towards the same directory as the main domain where the CMS is located.
https:italimporta.nl
But https://leukvanpizzajolly.nl is giving the error mentioning that the cert. is not ok and when accepting it is directing towards the default server domain (hocom-advies.nl)
tried to run the process all over but ending with the same result.
this is in my vhost for the domain:
<VirtualHost *:443>
DocumentRoot "/var/www/www.italimporta.nl/www"
ServerName leukvanpizzajolly.nl
ServerAlias leukvanpizzajolly.nl www.leukvanpizzajolly.nl
<Directory "/var/www/www.italimporta.nl/www">
Options -Indexes
AllowOverride all
SSLCertificateFile /etc/letsencrypt/live/leukvanpizzajolly.nl/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/leukvanpizzajolly.nl/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/leukvanpizzajolly.nl/chain.pem
<VirtualHost *:80>
DocumentRoot "/var/www/www.italimporta.nl/www"
ServerName leukvanpizzajolly.nl
ServerAlias www.leukvanpizzajolly.nl leukvanpizzajolly.nl http://leukvanpizzajolly.nl http://www.leukvanpizzajolly.nl
<Directory "/var/www/www.italimporta.nl/www">
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride all
#Redirect permanent / https://leukvanpizzajolly.nl/
So what Am I missing here?
- I first added the new domain to the italimporta.nl settings. (it asked if I wanted to Expand I chose yes).
running this:
certbot certonly --webroot -w /var/www/www.italimporta.nl/www -d italimporta.nl -d www.italimporta.nl -d leukvanpizzajolly.nl -d www.leukvanpizzajolly.nl - since the result was not ok (as above explained) I removed the renewal file for italimporta.nl and run renew which created a new file? now I have : italimporta.nl italimporta.nl-0001 leukvanpizzajolly.nl
for the second attempt I deleted all the belonging files under:
rm -R /etc/letsencrypt/live/leukvanpizzajolly.nl and other locations
and run the
certbot certonly --webroot -w /var/www/www.italimporta.nl/www -d leukvanpizzajolly.nl -d www.leukvanpizzajolly.nl
Not the result I was expecting. Why is it not accepting this cert?