Matthew Gillen wrote:
> Vassilis Rizopoulos wrote:
>> I will repeat this, as I also posted a Ticket and the comment is, it
>> should be asked first in the list:
>>
>> Installation of mod_python 3.2.10/ Python 2.3.5/Apache 2.0.59/Subversion
>> 1.4.0 on Windows
>>
>> Apache Configuration is
>>
>> <LocationMatch "/trac/[^/]+/login">
>> AuthType Basic
>> AuthName "TRAC"
>> AuthUserFile "d:/frasv001/cfg/trac/auth/trac.htpasswd"
>> Require valid-user
>> </LocationMatch>
>>
>> There are two project environments. The one project environment is
>> accessed properly and with no problems. The second one generates the
>> following error:
>>
>> Python Traceback
>> assert req.remote_user, 'Authentication information not available.'
>> AssertionError: Authentication information not available.
>>
>> The main difference is that the first project environment is a 0.9.0
>> environment migrated to 0.10, while the other one is new.
>> I also had to hack trac.cgi and add
>> import os
>> os.environ['TRAC_ENV_PARENT_DIR'] = "d:/trac"
>> because it doesn't seem to pick up on the enviroment directive in Location
>>
>> Anyone have an idea what can be wrong? This will just going to kill the
>> Trac instalation in my firm :(
>> V.-
>
> My guess is there is problem with your Apache config: your LocationMatch
> directive doesn't match the second project somehow. What happens if you use
> "/trac/.*/login", or list out the projects individually?
Same thing happens if I use two separate locations. It was the first
thing I tried. If you see the original start of the thread, I use
explicit location directives.
<Location "/trac/server/login">
AuthType Basic
AuthName "SERVER"
AuthUserFile "d:/frasv001/cfg/trac/auth/server.htpasswd"
Require valid-user
</Location>
<Location "/trac/p2/login">
AuthType Basic
AuthName "P2"
AuthUserFile "d:/frasv001/cfg/trac/auth/p2.htpasswd"
Require valid-user
</Location>
I'm stumped!
V.-
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Trac Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---