How To Move an Nginx Root to a New Location

On Ubuntu, the [Nginx web server](https://www.nginx.com/) typically stores its documents on the root filesystem with the rest of the operating system. However, if you serve multiple websites from the same Nginx instance, for example, putting each site’s document root on its own volume allows you to scale in response to the needs of a specific site or client. In this guide, we’ll move an Nginx document root to a new location.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.