How to create vhost Oct 8, 2019 /etc/apache2/sites-available/shopware1.lan.conf <VirtualHost *:80> ServerAdmin webmaster@ostechnix1.lan ServerName shopware1.lan ServerAlias www.shopware1.lan DocumentRoot /var/www/html/shopware/sites/shopware1.lan/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> /etc/hosts 127.0.0.1 shopware1.lan After this you need to run sudo a2ensite shopware1.lan.conf systemctl reload apache2