Apache: Konfiguration virtueller hosts

Ich hatte einige Mühe in die Konfiguration von virtuellen hosts in Apache 2.2.3 CentOS,
Ich habe die folgende Konfiguration:

httpd.conf

NameVirtualHost mydomain.site.ch

<VirtualHost mydomain.site.ch>
    ServerName mydomain.site.ch
    DocumentRoot /home/django_www/hello
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /var/www/html
</VirtualHost>

/etc/hosts

127.0.0.1       localhost.localdomain localhost
x.y.z.89        mydomain.site.ch

Muss ich mit allen Anforderungen, kommt zu diesem server mit der zweiten VirtualHost-Eintrag, außer dem einen, kommt mit dieser domain-name "mydomain.Website.ch" .
Aber das Ergebnis: mit dieser Konfiguration habe ich alle Anfragen bearbeitet der erste VirtualHost-Eintrag.. (die Konfigurations-syntax ist OK!) Irgendwelche Ideen wie man dieses problem beheben?

InformationsquelleAutor Kreshnik | 2012-08-27
Schreibe einen Kommentar