Last active
December 12, 2015 07:18
-
-
Save mrdaemon/4735162 to your computer and use it in GitHub Desktop.
Example of namebased virtualhosts
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 *:80 | |
<VirtualHost *:80> | |
ServerName www.asshole.com | |
ServerAlias asshole.com sub.asshole.com | |
DocumentRoot /var/www/asshole | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName data.asshole.com | |
DocumentRoot /var/www/assholedata | |
</VirtualHost> |
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
192.168.0.2 www.asshole.com sub.asshole.com asshole.com | |
192.168.0.2 data.asshole.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment