I've set up a new VirtualHost on Apache with this configuration:
DocumentRoot "/var/www/html" <VirtualHost *:80> ServerName mydomain.net DocumentRoot /var/www/html/mydomain.net </VirtualHost>
When I access to mydomain.net I get the correct document root. But If I go to http://myIP it access to /var/www/html/mydomain.net instead of /var/www/html
Any idea how to fix this ?
Thanks!