Question

change droplet domain name

Posted January 3, 2020 175 views
Apache

i have changed droplet domain by deleting old domain and add new domain from cpanel but when i go to the new domin of my droplet redirecting me to old domain and i am trying to install ssl to new domain and i got this error message
No vhost exists with servername or alias of thisisegypttours.com. No vhost was selected. Please specify ServerName or ServerAlias in the Apache config.
No vhost selected

IMPORTANT NOTES:

  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/thisisegypttours.com/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/thisisegypttours.com/privkey.pem Your cert will expire on 2020-04-02. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the “certonly” option. To non-interactively renew all of your certificates, run “certbot renew”

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

As you are using WHM / cPanel I would strongly recommend using the Let’s Encrypt feature built into cPanel rather than using the certbot command directly from your command line.

You can just run it from the autossl section within WHM. You can take a look at this article here from the official cPanel documentation on how to do that:

https://documentation.cpanel.net/display/CKB/The+Let’s+Encrypt+Plugin

Hope that this helps!

Regards,
Bobby

Submit an Answer