In http.conf ist der Eintrag für die httpd-vhosts.conf aktiviert:
- Code: Select all
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Die Datei httpd-vhosts.conf sieht folgendermaßen aus (Kommentare wurden fürs Posten gelöscht):
- Code: Select all
NameVirtualHost *:80
<VirtualHost *>
ServerName localhost
ServerAdmin meine@mailadresse.de
DocumentRoot "C:\Local Programs\apachefriends\xampp\htdocs"
ErrorLog logs/error.log
CustomLog logs/access.log common
</VirtualHost>
<VirtualHost *>
ServerName www.tsg-steinheim.local
ServerAdmin meine@mailadresse.de
DocumentRoot "D:\WWW\tsg_steinheim\hauptseite"
ErrorLog "D:\WWW\tsg_steinheim\hauptseite\log\test_fehler.log"
CustomLog "D:\WWW\tsg_steinheim\hauptseite\log\test_server.log" combined
</VirtualHost>
<VirtualHost *>
ServerName www.volleyball.local
ServerAdmin meine@mailadresse.de
DocumentRoot "D:\WWW\tsg_steinheim\volleyball"
ErrorLog "D:\WWW\tsg_steinheim\volleyball\log\test_fehler.log"
CustomLog "D:\WWW\tsg_steinheim\volleyball\log\test_server.log" combined
</VirtualHost>
<VirtualHost *>
ServerName www.downgruppe.local
ServerAdmin meine@mailadresse.de
DocumentRoot "D:\WWW\downgruppe\entwurf"
ErrorLog "D:\WWW\downgruppe\entwurf\log\test_fehler.log"
CustomLog "D:\WWW\downgruppe\entwurf\log\test_server.log" combined
</VirtualHost>
<VirtualHost *>
ServerName www.cvjm-steinheim.local
ServerAdmin meine@mailadresse.de
DocumentRoot "D:\WWW\cvjm_steinheim\cvjm_steinheim"
ErrorLog "D:\WWW\cvjm_steinheim\cvjm_steinheim\log\test_fehler.log"
CustomLog "D:\WWW\cvjm_steinheim\cvjm_steinheim\log\test_server.log" combined
</VirtualHost>
Die Daten für die httpd-vhosts.conf habe ich aus meiner alten vhosts-Datei von XAMPP 1.4.x übernommen. Dort hatte auch alles einwnadfrei funktioniert.
Die Datei hosts im Systemverzeichnis hat folgende Einträge:
- Code: Select all
127.0.0.1 localhost
127.0.0.1 www.tsg-steinheim.local
127.0.0.1 www.volleyball.local
127.0.0.1 www.cvjm-steinheim.local
127.0.0.1 www.downgruppe.local
Egal welchen Eintrag im Browser ich in die URL-Zeile eintrage (http://www.volleyball.local, http://www.downgruppe.local), ich komme immer auf die Startseite von "http://localhost/". Im URL-Feld steht dann z.B. http://www.volleyball.local/xampp/.
Kann mir vielleicht jemand helfen und mit erkären, wo ich was falsch gemacht habe.