Created
July 15, 2012 12:53
-
-
Save koriym/3116687 to your computer and use it in GitHub Desktop.
/etc/apache2/extra/httpd-vhosts.conf
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
# | |
# Use name-based virtual hosting. | |
# | |
NameVirtualHost *:80 | |
# | |
# VirtualHost example: | |
# Almost any Apache directive may go into a VirtualHost container. | |
# The first VirtualHost section is used for all requests that do not | |
# match a ServerName or ServerAlias in any <VirtualHost> block. | |
# | |
<Directory /var/www> | |
AllowOverride All | |
Options Indexes FollowSymLinks ExecCGI MultiViews | |
order deny,allow | |
Allow from all | |
DirectoryIndex index.html index.htm index.php | |
</Directory> | |
<VirtualHost *:80> | |
ServerName localhost | |
VirtualDocumentRoot /var/www/%0/htdocs | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment