change droplet domain name

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 No vhost was selected. Please specify ServerName or ServerAlias in the Apache config. No vhost selected


  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/ Your key file has been saved at: /etc/letsencrypt/live/ 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”

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


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:’s+Encrypt+Plugin

Hope that this helps!

Regards, Bobby