Created
August 9, 2012 15:21
-
-
Save JossWhittle/3305087 to your computer and use it in GitHub Desktop.
XAMPP Vhost Example
This file contains hidden or 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
127.0.0.1 l2program.local | |
127.0.0.1 new.l2program.local | |
127.0.0.1 ie.l2program.local | |
127.0.0.1 cv.l2program.local | |
127.0.0.1 misc.local |
This file contains hidden or 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
NameVirtualHost * | |
<VirtualHost *> | |
DocumentRoot "C:\xampp\htdocs" | |
ServerName localhost | |
</VirtualHost> | |
<VirtualHost *> | |
DocumentRoot "C:\Users\Joss\Documents\Programming\local server\L2Program" | |
ServerName l2program.local | |
<Directory "C:\Users\Joss\Documents\Programming\local server\L2Program"> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *> | |
DocumentRoot "C:\Users\Joss\Documents\Programming\local server\L2Program\new" | |
ServerName new.l2program.local | |
<Directory "C:\Users\Joss\Documents\Programming\local server\L2Program\new"> | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
## ... Additional subdomains omitted for clarity ... | |
<VirtualHost *> | |
DocumentRoot "C:\Users\Joss\Documents\Programming\local server\misc" | |
ServerName misc.local | |
<Directory "C:\Users\Joss\Documents\Programming\local server\misc"> | |
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