Skip to content

Instantly share code, notes, and snippets.

@dantoncancella
Created February 18, 2013 15:12
Show Gist options
  • Save dantoncancella/4978099 to your computer and use it in GitHub Desktop.
Save dantoncancella/4978099 to your computer and use it in GitHub Desktop.
VirtualHost Example - Apache
# 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