i have an issue. I have a VirtualHost for domain1.com on IP 1.2.3.4, but Apache reply to the request to the IP 1.2.3.4 ignoring the ServerName.
So, if i point domain2.com to 1.2.3.4 i see the content of /var/www/html/domain1.com and not the content of /var/www/html/default
What is wrong?
Listen 80
NameVirtualHost 1.2.3.4:80
<VirtualHost 1.2.3.4:80>
SSLEngine off
DocumentRoot /var/www/html/domain1.com
ServerName www.domain1.com:80
<Directory "/var/www/html/domain1.com">
allow from all
</Directory>
LogLevel notice
UseCanonicalName on
</VirtualHost>
<VirtualHost _default_:80>
DocumentRoot /var/www/html/default
<Directory /var/www/html/default>
allow from all
</Directory>
</VirtualHost>