By itechgrow
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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/
sudo netstat -plant | grep 80
On an Ubuntu Droplet, if you are using Nginx, you could find your Nginx server block at:
/etc/nginx/sites-enabled/your_domain_com.conf
For Apache this would be:
/etc/apache2/sites-enabled/your_domain_com.conf
Make the change and then restart your web server:
For Nginx:
systemctl restart nginx
For Apache:
systemctl restart apache2
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 domain
Finally, 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.