Skip to content

Instantly share code, notes, and snippets.

@Cameron-D
Created May 31, 2011 04:47
Show Gist options
  • Save Cameron-D/999882 to your computer and use it in GitHub Desktop.
Save Cameron-D/999882 to your computer and use it in GitHub Desktop.
All IPs:
<VirtualHost *:80>
DocumentRoot /home/example/www
ServerName example.com www.example.com
</VirtualHost>
Specific IP:
<VirtualHost 172.16.11.10:80>
DocumentRoot /home/example/www
ServerName example.com www.example.com
</VirtualHost>
Windows:
<VirtualHost 172.16.11.10:80>
DocumentRoot C:\something\www
ServerName example.com www.example.com
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment