Requests to my domain leanback.eu are served from the default page (/var/www/default), and not from /var/www/leanback_eu. How is this possible? Other vhosts are working fine. The hostname of my machine is leanback.eu...
000-default:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/default/
<Directory /var/www/default/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/error_default.log
# debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access_default.log combined
</VirtualHost>
leanback_eu:
<VirtualHost *:80>
ServerAdmin webmaster@leanback.eu
ServerName leanback.eu
DocumentRoot "/var/www/leanback_eu/"
ErrorLog "/var/log/apache2/error_leanback_eu.log"
CustomLog /var/log/apache2/access_leanback_eu.log combined
<Directory "/var/www/leanback_eu/">
Order allow,deny
Allow from all
AllowOverride All
</Directory>
<Directory /var/www/leanback_eu/stats>
Options Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
$ sudo apache2 -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server leanback.eu (/etc/apache2/sites-enabled/000-default:2)
port 80 namevhost leanback.eu (/etc/apache2/sites-enabled/000-default:2)
port 80 namevhost kexx.net (/etc/apache2/sites-enabled/kexx_net:77)
port 80 namevhost leanback.eu (/etc/apache2/sites-enabled/leanback_eu:1)
It might be zomething very simple...