Skip to content

Instantly share code, notes, and snippets.

@ainsofs
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ainsofs/d45f7f8944309d61a721 to your computer and use it in GitHub Desktop.
Save ainsofs/d45f7f8944309d61a721 to your computer and use it in GitHub Desktop.
Setup Site Alias on Apache Ubuntu 12
#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