Created
February 18, 2013 15:12
-
-
Save dantoncancella/4978099 to your computer and use it in GitHub Desktop.
VirtualHost Example - Apache
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
# Ensure that Apache listens on port 80 | |
Listen 80 | |
# Listen for virtual host requests on all IP addresses | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
DocumentRoot /www/example1 | |
ServerName www.example.com | |
# Other directives here | |
</VirtualHost> | |
<VirtualHost *:80> | |
DocumentRoot /www/example2 | |
ServerName www.example.org | |
# Other directives here | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment