How To Move an Apache Web Root to a New Location

The Apache2 web server typically stores its documents in /var/www/html by default. This directory is located on the root filesystem with the rest of the operating system. You may want to move the document root to another location, such as a separate mounted filesystem. For example, if you serve multiple websites from the same Apache instance, 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.

Debian

8

How To Move an Apache Web Root to a New Location on Debian 8

Learn How To Move an Apache Web Root to a New Location on Debian 8

Ubuntu

20.04

How To Move an Apache Web Root to a New Location on Ubuntu 20.04

Learn How To Move an Apache Web Root to a New Location on Ubuntu 20.04
18.04

How To Move an Apache Web Root to a New Location on Ubuntu 18.04

Learn How To Move an Apache Web Root to a New Location on Ubuntu 18.04
16.04

How To Move an Apache Web Root to a New Location on Ubuntu 16.04

Learn How To Move an Apache Web Root to a New Location on Ubuntu 16.04

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.