Setting up some dev sandboxes on my droplet. What's the best way to do this?

I want to setup some Wordpress dev sandboxes as subdirectories of my domain. I already have a site setup on the main domain.

I am thinking that I should just setup other Wordpress installs as siblings to the current installation. But I am not sure how to setup the URLs to route traffic to the correct place.

Sorry for the noob question.

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.

<b>“What do you do for sharing sites with clients to get them cleaned up before migration and launch?”</b> <br> <br>Exactly what you’re trying to accomplish. <br> <br>1.) Create a subdomain, e.g. <code></code>; <br> <br>2.) In DigitalOcean’s DNS Manager, create an <code>A record</code> (pointed to a 2nd, $5 droplet); <br> <br>3.) Install WordPress in a subdirectory named after the client, e.g. <code>/srv/www/client_name/</code>. <br> <br>I pretty much follow the process in <a href=“”>How To Set Up Multiple WordPress Sites on a Single Ubuntu VPS</a> (but substitute Nginx in lieu of Apache); although, I did (by accident) come across a new article recently: <a href=“”>How To Configure Single and Multiple WordPress Site Settings with Nginx</a> (but haven’t gotten a chance to work through it, yet).<blockquote>(RANT: I really wish DigitalOcean would make it easier to peruse newly published articles – as opposed of having to go chase them down on Social Media! Okay, I’m done.)</blockquote>

Pablo, thanks I do develop locally using either MAMP or XAMPP. I probably shouldn’t have said dev sandboxes. They will be more like dev presentation boxes. I got DesktopServer recently and it’s pretty sweet. I can share out my IP and let clients view the sites, but I can only share one at a time. <br> <br>I am often working on multiple sites at once and I want to place to upload them to where my clients can see them before we migrate to their live server. <br> <br>Thanks for the link to the Wordpress codex. That looks like that would work. <br> <br>What do you do for sharing sites with clients to get them cleaned up before migration and launch?

<b>“What’s the best way to do this?”</b> <br> <br>The best way to do this is to <b>not</b> develop on your production server. For an (arguably, better) alternative, check out <a href=“”>Why & How-To Set Up a WordPress Local-Development Environment With Vagrant</a>. <br> <br>Otherwise, check out sections 2 & 3 of <a href=“”>Giving WordPress Its Own Directory | Codex</a>.