Created
June 28, 2013 02:11
-
-
Save sicksand/5881957 to your computer and use it in GitHub Desktop.
adding virtualhost to apache2
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
I added the following file, foo, to /etc/apache2/sites-available/: | |
<VirtualHost *:80> | |
ServerName foo | |
DocumentRoot /var/www/foo/foo | |
# Other directives here | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride None | |
</Directory> | |
<Directory /var/www/foo/foo> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None | |
Order allow,deny | |
allow from all | |
</Directory> | |
</VirtualHost> | |
I then ran the following commands: | |
sudo a2ensite foo | |
sudo /etc/init.d/apache2 reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment