quick to move subdomain to different directory on same server

Hits: 344

It is incredibly simple to move a subdomain to a different subdirectory anywhere on your server.

First move it

  • sudo mv /var/www/subdomain_folder  /var/subdomain_folder
  • Edit the apache  your subdomain_folder etc/apache2/sites_available change to reflect the new location

DocumentRoot /var/subdomain_folder

  • Save the file
  • I restarted apache but am not sure if this required.