Wednesday, 1 February 2012

aws NameVirtualHost

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>
view raw httpd.conf hosted with ❤ by GitHub

No comments:

Post a Comment