Recently i got new project and old developer has use digitalocean server for my client website. Now my client wants to move that web to new domain on same server. Actually i am new with Digital Ocean and i have zero knowledge of digital ocen. So i dont know what process has done by past developer and what to do move same website to one digital ocean server to another digial ocean server. Only Domain name will be changed. Kindly guide me every step as i am damm new for your server and Zero knowledge of it.
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.
Hi @itechgrow,
It would be more of a server-side change rather than a DigitalOcean specific change. What you would need to do is the following:
https://www.digitalocean.com/docs/networking/dns/how-to/manage-records/
On an Ubuntu Droplet, if you are using Nginx, you could find your Nginx server block at:
For Apache this would be:
Make the change and then restart your web server:
For Nginx:
For Apache:
Also if you are using a CMS like Wordpress you would need to update your Site and Home URLs to your new domain name, or if you are using a framework like Laravel, then you need to change your
APP_URL
in your.env
file to the new domainFinally, you could also rename your Droplet so that when you access your DigitalOcean control panel you could easily figure out what’s hosted on that Droplet. To do that you need to go to your DigitalOcean control panel at: https://cloud.digitalocean.com/ > then click on your Droplet > then click on the name of the Droplet and just edit the name
Hope that this helps!
Let me know if you have any other questions. Regards, Bobby