Created
February 2, 2012 04:12
-
-
Save msroot/1721410 to your computer and use it in GitHub Desktop.
NameVirtualHost
This file contains 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 MYDOMAIN.COM | |
DocumentRoot /var/www/html/MYDOMAIN.COM | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName MYDOMAIN2.COM | |
ServerAlias www.MYDOMAIN2.COM | |
DocumentRoot /var/www/html/MYDOMAIN2.COM | |
</VirtualHost> | |
<Directory "/var/www/html/MYDOMAIN.COM/"> | |
Options FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
DirectoryIndex index.php index.html index.html.var | |
</Directory> | |
<Directory "/var/www/html/MYDOMAIN2.COM/"> | |
Options FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
DirectoryIndex index.php index.html index.html.var | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment