What are the proper steps to set up multiple virtual hosts on 16.0

Let’s do it the dirty way:

  • sudo cp -r /srv/ /home assuming you have /home on a separate partition and that you have the hosts in /srv now. Otherwise do:sudo mkdir -p /home/srv/www/htdocs and put your websites in there, each in their own subdirectory, f.e. dt30.us .
  • Edit the section to reflect this:
VirtualHost *:80>
    ServerName dt30.us
    ServerAlias www.dt30.us

    DocumentRoot "/home/srv/www/htdocs/dt30.us"

    <Directory "/home/srv/www/htdocs/dt30.us">
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog  /var/log/apache2/dt30.us-error.log
    CustomLog /var/log/apache2/dt30.us-access.log combined
</VirtualHost>

Name the file /etc/apache2/vhosts.d/dt30.us