1
I'm not sure how to solve my problem. It is that my Apache2 is configured to serve 3 different VirtualHosts. That depends on the Domains.
The config is:
NameVirtualHost example.eu:80
<VirtualHost example.eu:80>
DocumentRoot /var/www2
ServerName www.example.eu
# Other directives here
</VirtualHost>
NameVirtualHost example.de:80
<VirtualHost example.de:80>
DocumentRoot /var/www3/drupal
ServerName www.example.de
</VirtualHost>
NameVirtualHost test.de:80
<VirtualHost test:80>
DocumentRoot /var/www1/drupal
ServerName test.de
</VirtualHost>
If I go to www.example**.de** I arrive at example**.eu** (the first configured VirtualHost). Same thing with test.de. It seems the www. is misinterpreted by that config. What do I have to do to make Apache2 handle this correctly, so that with and without "www." I get where I want - each time. All DNS entrys go to the same Apache2 server IP. The server is supposed to handle the requests accordingly. With and without the "www" prefix.
Best, ww
default VirtualHost overlap on port 80, the first has precedence - that's what I get now. I don't think that is the solution. – www – 2011-10-13T17:21:57.263
Because you have a virtualhost with header like
<VirtualHost _default_:80>
. Try to disable it. – Gabor Garami – 2013-07-09T22:12:16.983