Created
April 4, 2012 04:11
-
-
Save danlefebvre/2297647 to your computer and use it in GitHub Desktop.
Adding Virtual host Ubuntu
This file contains hidden or 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
cd /etc/apache2/sites-available | |
sudo pico yourdomain.dev.conf | |
<VirtualHost *:80> | |
ServerName yourdomain.dev | |
DocumentRoot /home/dev/sites/yourdomain | |
</VirtualHost> | |
sudo pico /etc/hosts | |
127.0.0.1 yourdomain.dev | |
sudo a2ensite yourdomain.dev.conf | |
sudo /etc/init.d/apache2 reload | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment