Skip to content

Instantly share code, notes, and snippets.

@jawinn
Created August 7, 2014 03:06
Show Gist options
  • Select an option

  • Save jawinn/9a0fdd6c45b8e92cb244 to your computer and use it in GitHub Desktop.

Select an option

Save jawinn/9a0fdd6c45b8e92cb244 to your computer and use it in GitHub Desktop.
WAMP - Additional www folders using httpd-vhosts.conf (www2, www3)
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# 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.
#
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/exampleOtherRoot"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www2"
ServerName dev2.localhost
<directory "C:/wamp/www2">
Options Indexes FollowSymLinks
AllowOverride All
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/wamp/www3"
ServerName dev3.localhost
<directory "C:/wamp/www3">
Options Indexes FollowSymLinks
AllowOverride All
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment