Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Changing domain name associated with the server
I have a working LAMP server that I used to set up a new website.
The server has a temporary domain pointing to it (e.g. acme-test.com) and I’m using Let’s Encrypt to provide SSL.
Now that everything is set up and working, I’m ready to point the actual domain (e.g. acme.com) to that server.
To do that I will change the DNS records with the registrar to point to DO and set up the appropriate settings under Networking->Domains.
How do I go about changing the SSL on the LAMP instance itself? Can I just run: certbot –apache -d acme.com -d www.acme.com and it will take care of it all, or will there be problems because a different domain was set up previously?
I’m hesitant to just test this out because I want to have minimal downtime during the switch so I figured I’d ask the community.
Thanks in advance!
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.×