Droplet cloning on different domain

I am new on DO I took a snapshot of an existing Droplet that has Ubuntu, apache2, zpanel and wordpress. I will call this domain as an example.

I created another droplet under another domain ( name using that subscription.

I want to use the new droplet for dev and test, but under the new domain (

What is the best way to have it working properly since hhtpd-vhosts.conf has a lot of pointing to domain

Thanks, Mario

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Unfortunately, it sounds like you will need to edit these files to point to the new domain. Though using find and sed together, you can automate it a bit. For example to replace all mentions of with, move into the folder containing the files and run:

cd /etc/apache2
find . -type f -print0 | xargs -0 sed -i 's/'