### Dynamic Virtual Hosts
#
# Dynamic VirtualHost: If you want to maintain multiple domains/hostnames on
# your machine and have the process be semi-automatted, you can enable dynamic
# virtual hosts. Apache will automatically host any folder under
# /var/www/vhosts/ as a corresponding domain name. An example of this is:
# If you create the folder example.com under /var/www/vhosts/, now Apache will
# serve pages for example.com using the /var/www/vhosts/example.com/ folder.
#
# Hint: Aliasing the sub-domain www.[example.com] can be easily accomplished
# by simply simlinking www.[example.com] to [example.com].
#
# Please see the documentation at
#
# and
#
# for further details before you try to setup virtual hosts.
#
# Note: Dynamic Virtual Hosts uses the mod_vhost_alias apache module.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" dynamic_vhosts
CustomLog logs/access_log dynamic_vhosts
# Security Directive
#
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options -Indexes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from the dynamic virtual hosts.
#
Order allow,deny
Allow from all
# Dynamic Virtual Host Definitions
#
# www.example.com --> /web/www.example.com
# a.www.example.com --> /web/a.www.example.com
# example.com --> /web/example.com
VirtualDocumentRoot /var/www/vhosts/%0.0
VirtualScriptAlias /var/www/vhosts/%0.0/cgi
# www.example.com --> /web/example.com
# a.www.example.com --> /web/example.com
# example.com --> /web/example.com
#VirtualDocumentRoot /var/www/vhosts/%-2.0.%-1.0
#VirtualScriptAlias /var/www/vhosts/%-2.0.%-1.0/cgi
# www.example.com --> /web/example.com/www
# a.www.example.com --> /web/example.com/a.www
# example.com --> /web/example.com/_
#VirtualDocumentRoot /var/www/vhosts/%-2.0.%-1.0/%-3+/
#VirtualScriptAlias /var/www/vhosts/%-2.0.%-1.0/%-3+/cgi
# CGI Directives
#
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all