Virtual hosts refer to the same document root folder
Need some help here. Running Apache on Slackware and both virtual hosts refer to the same document root folder. Any ideas how to fix this?
Here is my VirtualHost entry in my httpd.conf
NameVirtualHost *
DocumentRoot "/var/www/htdocs"
<VirtualHost *>
ServerName site1.servehttp.com
ServerAlias site1.servehttp.com
DocumentRoot /var/www/htdocs/
ErrorLog /var/log/apache/site1.servehttp.com-error_log
TransferLog /var/log/apache/site1.servehttp.com-access_log
</VirtualHost>
<VirtualHost *>
ServerName site2.no-ip.com
ServerAlias site2.no-ip.com
DocumentRoot /var/www/htdocs/site2/"
ErrorLog /var/log/apache/site2.no-ip.com-error_log
TransferLog /var/log/apache/site2.no-ip.com-access_log
</VirtualHost>
|