Authentifizierung bringt Fehler 500

Alles, was den Apache betrifft, kann hier besprochen werden.

Authentifizierung bringt Fehler 500

Postby Schmetterling » 20. November 2009 21:09

Ich habe meine Konfigurationsdatei etwas erweitert:
Code: Select all
Globale Umgebung:
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_file_module modules/mod_authn_file.so
Hauptserverkonfiguration:
<Directory....>
AuthType Basic
AuthName "MP3 Downloadbereich"
AuthUserFile usr/local/Apache2.2/bin/Admin
Require valid-user
</Directory>

Zuvor habe ich eine Benutzerdatei unter Windows erstellt: .../htpasswd -c Admin Schmetterling
Im Editor unter ../Apache2.2/bin kann ich diese Datei mit meinem Benutzer auch sehen.
Möchte ich nun auf mein geschütztes Verzeichnis zugreifen fragt er mich auch nach Benutzer und Passwort.
Kann diese Daten aber dann nicht überprüfen und gibt mir die 500 Statusmeldung zurück.
Im error.log steht dazu folgendes:
Code: Select all
[Fri Nov 20 20:54:18 2009] [notice] Parent: Received restart signal -- Restarting the server.
[Fri Nov 20 20:54:18 2009] [notice] Child 2252: Exit event signaled. Child process is ending.
[Fri Nov 20 20:54:18 2009] [notice] Apache/2.2.14 (Win32) configured -- resuming normal operations
[Fri Nov 20 20:54:18 2009] [notice] Server built: Sep 28 2009 22:41:08
[Fri Nov 20 20:54:18 2009] [notice] Parent: Created child process 2508
[Fri Nov 20 20:54:19 2009] [notice] Child 2508: Child process is running
[Fri Nov 20 20:54:19 2009] [notice] Child 2508: Acquired the start mutex.
[Fri Nov 20 20:54:19 2009] [notice] Child 2508: Starting 64 worker threads.
[Fri Nov 20 20:54:19 2009] [notice] Child 2252: Released the start mutex
[Fri Nov 20 20:54:20 2009] [notice] Child 2252: All worker threads have exited.
[Fri Nov 20 20:54:20 2009] [notice] Child 2252: Child process is exiting
[Fri Nov 20 20:54:20 2009] [notice] Child 2508: Starting thread to listen on port 80.
[Fri Nov 20 20:54:41 2009] [error] [client 127.0.0.1] File does not exist: C:/Programme/Apache Software Foundation/Apache2.2/htdocs/kap4/favicon.ico
[Fri Nov 20 20:54:58 2009] [error] [client 127.0.0.1] (OS 3)Das System kann den angegebenen Pfad nicht finden.  : Could not open password file: C:/Programme/Apache Software Foundation/Apache2.2/usr/local/Apache2.2/bin/Admin, referer: http://localhost/
Schmetterling
 
Posts: 12
Joined: 17. November 2009 15:31

Re: Authentifizierung bringt Fehler 500

Postby Wiedmann » 20. November 2009 21:38

Code: Select all
AuthUserFile usr/local/Apache2.2/bin/Admin

[Fri Nov 20 20:54:58 2009] [error] [client 127.0.0.1] (OS 3)Das System kann den angegebenen Pfad nicht finden. : Could not open password file:

Der Pfad + Dateiname zu deiner Passwortdatei stimmt nicht.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to Apache

Who is online

Users browsing this forum: No registered users and 50 guests

cron