On Wednesday, April 27, 2016 at 1:24:16 PM UTC-7, Holger Bruenjes wrote:
>
> Hello
>
> I used trac a few years in my domain and it works good, now I will
> switch trac over in a subdomain. OK,. trac works, but I can not
> login. The login give me error 500 from apache. I read the
> documentaion, but I can not solve this issue, please can you give my
> a hint to solve this?
>
> my VirtulHost conf, mod_wsgi-4.4.22, apache-2.4.20, python-2.7.10,
> trac-1.0.9
>
>
> <VirtualHost *:80>
> <IfModule !mod_auth_digest.c>
> LoadModule auth_digest_module mod_auth_digest.so
> </IfModule>
> # trac/eis-home------------------------------------
> ServerName ....................:80
> ServerAdmin .................
> DocumentRoot /var/lib/repo/trac/eis-home/htdocs
> Alias /chrome/common /usr/share/trac/htdocs/common
> Alias /chrome/site /var/lib/repo/trac/eis-home/htdocs
> WSGIScriptAlias / /var/lib/repo/trac/eis-home.wsgi
>
> <Directory /var/lib/repo/trac/eis-home>
> Require all granted
> </Directory>
>
> <Location ~ '/(?!login)'>
> WSGIApplicationGroup %{GLOBAL}
> Require all granted
> </Location>
>
> <Location '^/login'>
> AuthType Digest
> AuthName "eis-home"
> AuthDigestDomain eis-home
> AuthDigestProvider file
> AuthUserFile /var/lib/repo/trac/eis-home.htpasswd
> Require valid-user
> </Location>
> ErrorLog /var/lib/repo/trac/eis-home/log/log.error
> CustomLog /var/lib/repo/trac/eis-home/log/log.access combined
> loglevel debug
> </VirtualHost>
>
>
>
> log.access
>
> ..1 +0200] "GET /login HTTP/1.1" 500 4904 "http://
>
>
> Holger
>
What did you change in your configuration when you switched to a subdomain?
The first "Location" section looks strange. Try moving the
WSGIApplicationGroup directive into the "Directory" section and removing
the first "Location" section.
Does "eis-home.htpasswd" contain htpasswd format lines or htdigest format
lines? It should contain the latter to work with your configuration.
https://trac.edgewall.org/wiki/TracModWSGI#UsingDigestAuthentication
- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.