httpd.conf wird wegen Fehler nicht mehr geladen

Apache, Lighttpd, nginx, Cherokee
Post Reply
salnet
Posts: 50
Joined: 2002-07-14 00:59
Location: Bonn
 

httpd.conf wird wegen Fehler nicht mehr geladen

Post by salnet »

Hallo!

Nach ein, zwei Ã?nderungen an der httpd.conf (Hab AddType application/x-httpd-php .php3 eingebaut), einem Neustart (/etc/init.d/apache restart)
kommt flogende Fehlermeldung:

Code: Select all

Syntax error on line 447 of /etc/httpd/httpd.conf:
Invalid command '<Directory>', perhaps mis-spelled or defined by
a module not included in the server configuration         failed
In der httpd.conf steht an der Stelle:

Code: Select all

447 <Directory>
448     AuthUserFile  /etc/httpd/passwd
449     AuthGroupFile /etc/httpd/group
450
451     Options -FollowSymLinks +Multiviews
452     AllowOverride None
453
454 </Directory>

Das stand allerdings auch schon vorher so da. (btw: Die Zahlen sind die Zeilennummern, stehen natürlich nicht in der https.conf!)

Kann mir da jemand helfen?
alrad
Posts: 90
Joined: 2003-04-27 10:15
 

Re: httpd.conf wird wegen Fehler nicht mehr geladen

Post by alrad »

Hallo salnet,

da hast du wohl ein Zeichen wegeditiert.

Die Zeile 447 muss wie folgt lauten:
<Directory />

Die Angabe hinter Directory ist das Directory auf dass sich die Anweisungen beziehen.

Gruß
Albert
salnet
Posts: 50
Joined: 2002-07-14 00:59
Location: Bonn
 

Re: httpd.conf wird wegen Fehler nicht mehr geladen

Post by salnet »

Danke Albert!
Das wars!
Mein Editor (ich benutze Ultraedit) hat das wohl als ungültig erkannt und automatisch "ausradiert".

Den Fehler, warum er das gemacht hat, hab ich schon gefunden: Als Korrektursuche stand drin "html 4.0", da ist wohl ungültig.
Jetzt hat erstmal der "normale" Windowseditor hinhalten müssen.

Danke nochmal für die schnelle Hilfe!
Post Reply