Konrad Neitzel schrieb:
Hallo Liste!
[...]
- <VirtualHost> Block für jeden unterschiedlichen Host.
"Syntax: ... </VirtualHost>"
[...]
NameVirtualHost *
ServerName www.domain.de
ServerAlias domain.de sub.domain.de
DocumentRoot /www/domain/
</VirtualHost>
ServerName www.domain2.de
ServerAlias domain2.de sub.domain2.de
DocumentRoot /www/domain2/
</VirtualHost>
ServerName ssl.domain.de
DocumentRoot /www/domain/ssl/
</VirtualHost>
Und der Apache teilt mir mit:
[warn] VirtualHost domain.de:80 overlaps with VirtualHost
www.domain.de:80, the first has precedence, perhaps you need a
NameVirtualHost directive
Wieso machst Du <VirtualHost domain.de www.domain.de> ?
Daher kommt die Warnmeldung. Hinter beiden Domains steht die gleiche
IP-Adresse.
Apache löst nach dem auf, was bei ServerName bzw. ServerAlias steht und
nicht hinter
Es sollte laut Anleitung auch dort das gleiche stehen wie bei
NameVirtualHost -->
"The next step is to create a <VirtualHost> block for each different
host that you would like to serve. The argument to the <VirtualHost>
directive should be the __same__ as the argument to the NameVirtualHost
directive (ie, an IP address, or * for all addresses)."