Hallo Community,
ich habe mir das xampp Handbuch vorgenommen und will das von vorne bis hinten durcharbeiten.
Im Kapitel 3 unter 3.1 Virtual Hosts wird beschrieben wie Virtual Hosts eingebunden und angesprochen werden.
Ich habe wie im Buch beschrieben die Hosts Datei entsprechend geändert, also:
127.0.0.1 localhost1
127.0.0.2 localhost2 localhost 3
Folgende Anweisung ist in der httpd.conf "nicht" auskommentiert:
include conf/extra/httpd-vhosts.conf
Unter dem neu erstellten Verzeichnis "vhosts" habe ich die Ordner "htdocs" und "logs" jeweils unter ein neu erstelltes Verzeichnis "localhost1" "localhost2" und "localhost3" erstellt. Die Ordner htdocs enthalten
eine index.htm.
In der http-vhosts.conf habe ich folgende Einträge hinzugefügt:
NameVirtualHost 127.0.0.2
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost1
DocumentRoot d:/xampp 1.7.3/xampp/vhosts/localhost1/htdocs
ErrorLog d:/xampp 1.7.3/xampp/vhosts/localhost1/error_log
CustomLog d:/xampp 1.7.3/xampp/vhosts/localhost1/access_log common
</VirtualHost>
<VirtualHost 127.0.0.2:80>
ServerAdmin webmaster@localhost2
DocumentRoot d:/xampp 1.7.3/xampp/vhosts/localhost2/htdocs
ServerName localhost2
ErrorLog d:/xampp 1.7.3/xampp/vhosts/localhost2/error_log
customLog d:/xampp 1.7.3/xampp/vhosts/localhost2/access_log common
</VirtualHost>
<VirtualHost 127.0.0.2:80>
ServerAdmin webmaster@localhost3
DocumentRoot d:/xampp 1.7.3/xampp/vhosts/localhost3/htdocs
ServerName localhost3
ErrorLog d:/xampp 1.7.3/xampp/vhosts/localhost3/error_log
customLog d:/xampp 1.7.3/xampp/vhosts/localhost3/access_log common
</VirtualHost>
Jetzt soll ich laut Buch schön sehen können, wenn ich im Browser die "localhost1" oder 2 oder 3 aufrufe, wie dann meine index.htm angezeigt wird.
Jedoch komme ich gar nicht soweit denn mein Apache im Xampp startet nicht. Xampp bleibt kurz hängen, dann steht später unten im Info-Fenster "Apache service started" aber der ist nicht gestartet.
Im Ereignissprotokol steht: Der Dienst "Apache2.2" wurde mit folgendem dienstspezifischem Fehler beendet: 1 (0x1).
Was mache ich falsch?
vG
xtest