http-vhosts.conf fehlerhaft

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Postby Wiedmann » 26. August 2008 16:00

die http-vhost.config sieht so aus

Das mit den Anführungsstrichen ist natürlich bei allen Pfaden so.

dies sagt ihm auch nicht zu

Mit welcher Fehlermeldung?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby paweex » 26. August 2008 16:13

NameVirtualHost 127.0.0.2

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@localhost1
DokumentRoot "C:/Program Files/xampp/vhosts/localhost1/htdocs"
ErrorLog "C:/Program Files/xampp/vhosts/localhost1/logs/error_log"
CustomLog "C:/Program Files/xampp/vhosts/localhost1/logs/access_log common"
</VirtualHost>

<VirtualHost 127.0.0.2:80>
ServerAdmin webmaster@localhost2
DocumentRoot "C:/Program Files/xampp/vhosts/loacalhost2/htdocs"
ServerName localhost2
ErrorLog "C:/Program Files/xampp/vhosts/localhost2/logs/error_log"
CustomLog "C:/Program Files/xampp/vhosts/localhost2/logs/access_log common"
</VirtualHost>

syntax fehler line 49 DokumentRoot C:/Program Files/xampp/vhosts/localhost1/htdocs
invalid dokument root" misspelled or defined by included in the sever configuration

kann es an meinem vista liegen?
paweex
 
Posts: 11
Joined: 24. August 2008 07:20

Postby Wiedmann » 26. August 2008 16:40

syntax fehler line 49 DokumentRoot C:/Program Files/xampp/vhosts/localhost1/htdocs
invalid dokument root" misspelled or defined by included in the sever configuration

Diese Directive nennt sich "DocumentRoot" und nicht "DokumentRoot".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby paweex » 26. August 2008 16:58

jetzt hat er mit der zeile 51 zu kämpfen

CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see docs

dem buch zufolge soll ich
C:/Program Files/xampp/vhosts/localhost1/logs/access_log common
schreiben

in der file aber steht als beispiel folgendes
@rel_logfiledir@/dummy-host2.example.com-access_log common
das weicht doch völlig ab und nach was soll ich mich jetzt richten
irgend ein vorschlag wie ich das einigermaßen eigenständig erlernen kann...
paweex
 
Posts: 11
Joined: 24. August 2008 07:20

Postby Wiedmann » 26. August 2008 17:04

CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see docs

Das Wort "common" gehört nicht zum Pfad/file name (ist ein extra Parameter) und gehört demzufolge nicht mit in die Anführingsstriche.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby paweex » 26. August 2008 17:19

eh ich danke dir das passt alles ich habe sofort über den web browser mein localhost aufgerufen und er hat mich wieter auf seite geleitet ....
wie kann ich mich bei dir erkenntlich zeigen dank dir für deine geduld

gruß
paweex
 
Posts: 11
Joined: 24. August 2008 07:20

Previous

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 40 guests