Skip to content

Instantly share code, notes, and snippets.

@zgurya
Created January 24, 2017 15:48
Show Gist options
  • Save zgurya/f7a398e015c3d1c35dc7601b6bde0e2b to your computer and use it in GitHub Desktop.
Save zgurya/f7a398e015c3d1c35dc7601b6bde0e2b to your computer and use it in GitHub Desktop.
sudo nano /etc/apache2/sites-available/test.site.conf
<VirtualHost *:80>
ServerName test.site
ServerAlias www.test.site
ServerAdmin webmaster@localhost
DocumentRoot /var/www/test.site/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo a2ensite test.site.conf
sudo systemctl restart apache2
sudo nano /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment