Last active
August 29, 2015 14:23
-
-
Save ainsofs/d45f7f8944309d61a721 to your computer and use it in GitHub Desktop.
Setup Site Alias on Apache Ubuntu 12
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
#ubuntu 12 | |
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/example.com | |
#ubuntu 14 | |
sudo cp /etc/apache2/sites-available/000-default.config /etc/apache2/sites-available/example.com.config | |
sudo nano /etc/apache2/sites-available/example.com | |
ServerName example.com | |
sudo a2ensite example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment