[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[solved] Re: Apache 2.2 übernimmt Einstellung für vHost nicht



Patrick Matthäi schrieb:
Abend,

Ich habe hier folgende Apache 2.2 Konfiguration:

<VirtualHost 89.144.5.28>
        ServerAdmin me@linux-development.eu
        DocumentRoot /var/www
</VirtualHost>
<VirtualHost *>
        ServerName www.linux-dev.org
        ServerAdmin me@linzux-development.eu
        DocumentRoot /var/www
</VirtualHost>
<VirtualHost *>
        ServerName linux-dev.org
        ServerAdmin me@linux-development.eu
        DocumentRoot /var/www
</VirtualHost>
<VirtualHost *>
        ServerName nopaste.linux-dev.org
        ServerAdmin me@linux-development.eu
        DocumentRoot /var/www/nopaste
</VirtualHost>

ServerAdmin me@linux-development.eu
ServerName 89.144.5.28


Es geht alles soweit, allerdings leitet er nopaste.linux-dev.org nicht nach /var/www/nopaste weiter. Beim starten des apaches erhalte ich keinerlei Warning oder ähnliches. In den Logs steht dazu auch nichts, die Subdomain ist bei meinem Hoster korrekt eingetragen, was könnte ich da falsch gemacht haben?

Gruß Patrick M.



Okay, im IRC wurde mir meine Frage beantwortet, die Config hat wie folgt auszusehen:

NameVirtualHost *:80
<VirtualHost *:80>
        ServerName 89.144.5.28
        ServerAdmin me@linux-development.eu
        DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
        ServerName www.linux-dev.org
        ServerAdmin me@linzux-development.eu
        DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
        ServerName linux-dev.org
        ServerAdmin me@linux-development.eu
        DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
        ServerName nopaste.linux-dev.org
        ServerAdmin me@linux-development.eu
        DocumentRoot /var/www/nopaste
</VirtualHost>

Trotzdem schonmal Danke.
begin:vcard
note;quoted-printable:Sch=C3=B6nen Gru=C3=9F, Patrick 'the-me' Matth=C3=A4i.
version:2.1
end:vcard


Reply to: