Created
March 21, 2013 20:36
-
-
Save aidansmyth/5216498 to your computer and use it in GitHub Desktop.
Virtual hosts configuration on localhost
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
# Default wamp vhost | |
#<VirtualHost *:80> | |
# ServerAdmin webmaster@dummy-host2.example.com | |
# DocumentRoot "c:/Apache2/docs/dummy-host2.example.com" | |
# ServerName dummy-host2.example.com | |
# ErrorLog "logs/dummy-host2.example.com-error.log" | |
# CustomLog "logs/dummy-host2.example.com-access.log" common | |
#</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
DocumentRoot "C:/wamp/www" | |
ServerName localhost | |
</VirtualHost> | |
<VirtualHost *:80> | |
DocumentRoot C:/workspace1/website1 | |
ServerName website1.local | |
ServerAlias www.website1.local | |
<Directory "C:/workspace1/website1"> | |
Options Indexes FollowSymLinks | |
AllowOverride None | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:80> | |
DocumentRoot C:/workspace2/website2 | |
ServerName website2.local | |
ServerAlias www.website2.local | |
<Directory "C:/workspace1/website2"> | |
Options Indexes FollowSymLinks | |
AllowOverride None | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment