Am 2016-04-27 um 22:54 schrieb RjOllos:
>
>
> 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://
> What did you change in your configuration when you switched to a subdomain?
only I correct the path and drop ssl in the first time
this is the perfect working host integration
[.......
<IfModule !mod_rewrite.c>
LoadModule mod_rewrite_module mod_rewrite.so
</IfModule>
# Rewrite url for trac/eis-home SSL
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule /eis-home$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
<IfModule !mod_auth_digest.c>
LoadModule auth_digest_module mod_auth_digest.so
</IfModule>
# trac/eis-home------------------------------------
Alias /projects/eis-home/chrome/common /usr/share/trac/htdocs/common
Alias /projects/eis-home/chrome/site /var/lib/repo/trac/eis-home/htdocs
WSGIScriptAlias /projects/eis-home /var/lib/repo/trac/eis-home.wsgi
<Directory /var/lib/repo/trac/eis-home>
Require all granted
</Directory>
<Location /projects/eis-home>
WSGIApplicationGroup %{GLOBAL}
AuthType Digest
AuthName "eis-home"
AuthDigestDomain eis-home
AuthDigestProvider file
AuthUserFile /var/lib/repo/trac/eis-home.htpasswd
Require valid-user
Require ip 192.168.2
</Location>
<Location /projects/eis-home/login>
AuthType Digest
AuthName "eis-home"
AuthDigestDomain eis-home
AuthDigestProvider file
AuthUserFile /var/lib/repo/trac/eis-home.htpasswd
Require valid-user
</Location>
...........]
>
> The first "Location" section looks strange.
hmm,
> Try moving the
> WSGIApplicationGroup directive into the "Directory" section and removing
> the first "Location" section.
what is the differenz with the location of the WSGIApplicationGroup
directive, I can not find any differenz
>
> 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
yes, that worked perfectly
OK, I removed the first location section and move
WSGIApplicationGroup directive
stop apache
start apache
trac come up, I push the login buttom,
[...
it is in german
....]
Trac-Fehler
Keine Authentifikationsdaten vorhanden. Bitte lesen Sie
Installationsanleitung.
that is the same that I can see the last few days, but I dont know
is this a issue to trac or to apache or to what ...
I have also tested with mod_python-3.5.0 and have the same issue
Thanks
Holger
--
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.