[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Probleme mit apache2



Hallo,

ich habe unter debian lenny folgende Konfiguration:

Ich habe auf meinem apache2-Server die Verzeichnisse /srv/www/htdocs und
/srv/www/trac. Unter der Adresse https://<host>/ soll die "normale"
Webseite (mit Authentifizierung) erreichbar sein. Unter
https://<host>/trac soll ein Trac (mit anderer Authentifizierung)
erreichbar sein.

Folgende Konfiguration habe ich bis jetzt:

<VirtualHost *:443>
    ServerName      <host>
    ServerAdmin     admin@<host>
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/certs/<host>.crt
    SSLCertificateKeyFile /etc/apache2/ssl/private/<host>.key
    ErrorLog        /var/log/apache2/<host>-error.log
    CustomLog       /var/log/apache2/<host>-access.log combined
    DocumentRoot /srv/www/htdocs
    <Directory /srv/www/htdocs>
        AllowOverride none
        AuthType Basic
        AuthName "normale Website"
        AuthUserFile /srv/www/htdocs.htpasswd
        require valid-user
        SSLRequireSSL
    </Directory>
    <Location /trac>
        SetHandler mod_python
        PythonInterpreter main
        PythonHandler trac.web.modpython_frontend
        PythonOption TracEnv /srv/www/trac
        SetEnv PYTHON_EGG_CACHE /tmp
        AuthType Basic
        AuthName "Trac project"
        AuthUserFile /srv/www/trac.htpasswd
        Require valid-user
        SSLRequireSSL
    </Location>
</VirtualHost>

Das Problem bei dieser Konfiguration ist jetzt folgendes, wenn ich mich
ins Trac einlogge, wird /var/log/apache2/<host>-error.log mit
Fehlermeldungen geflutet, wie etwa:

[Thu Nov 12 17:04:23 2009] [error] [client 192.168.1.12] user peter:
authentication failure for "/chrome/common/css/code.css": Password
Mismatch, referer: https://<host>/trac/

Wenn ich den <Directory> Teil aus der Konfiguration rausnehme, dann
funktioniert es wieder, habe dann aber keine Authentifizierung auf der
normalen Seite.

Ich bin am verzweifeln, bin schon seit zwei Tagen an dem Problem dran
und bekomme es einfach nicht hin.

Erkennt jemand meinen Fehler und kann mir sagen, wie ich zu meiner
gewünschten Konfiguration komme?

PJ




Reply to: