Skip to content

Instantly share code, notes, and snippets.

@koriym
Created July 15, 2012 12:53
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 koriym/3116687 to your computer and use it in GitHub Desktop.
Save koriym/3116687 to your computer and use it in GitHub Desktop.
/etc/apache2/extra/httpd-vhosts.conf
#
# 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