Created
January 24, 2017 15:48
-
-
Save zgurya/f7a398e015c3d1c35dc7601b6bde0e2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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