On Thu, Feb 5, 2009 at 11:33 AM, Radha
<srimanthula.radhakris...@gmail.com> wrote:
>
> PLEASE DO NOT CLOSE THIS AS A DUPLICATE ISSUE. PLEASE HELP ME! ITS
> PROBABLY SOMETHING TOO SIMPLE, BUT STILL, I HAVEN'T BEEN ABLE TO TRACK
> IT DOWN, SO PLEASE BEAR WITH ME.
>
> I do understand there have been a lot of duplicates around this area,
> and I am sick and tired of browsing through the instructions time and
> again, looking through the issues again and again and haven't found a
> solution.
>
> Maybe, the instructions need to be re-written. I can definitely do
> that once I find some information on how to get it resolved.
>
> Here's my set up.
>
> Windows XP SP2, Apache 2.2.11, Trac 0.11.2.1, mod_wsgi, BASIC
> authentication.
>
> Folder layout: Root: D:/MyTrac TracProject: D:/MyTrac/TracProjects
> AccessLogs?: D:/MyTrac/TracLogs/AccessLogs ErrorLogs?: D:/MyTrac/
> TracLogs/ErrorLogs WSGIScripts: D:/MyTrac/TracWSGIScripts
> PasswordDigests?: D:/MyTrac/TracBasicAuth
>
> When I try to log into my trac installation, I get the most (in)famous
> error:
>
> Trac Error
>
> Authentication information not available. Please refer to the
> installation documentation.
>
> Please, please help me root out this problem. I've hit my head on this
> one for the last 4 days, with no result at all.
>
> My virtual server configuration and the .wsgi that I use are mentioned
> below.
>
> My Virtual Server configuration:
> <VirtualHost *:80>
>        ServerName  localhost
>        ServerAlias localhost
>        DocumentRoot D:/MyTrac/TracProjects
>        CustomLog D:/MyTrac/TracLogs/AccessLogs/MyTracAccessLog.log common
>        ErrorLog D:/MyTrac/TracLogs/ErrorLogs/MyTracErrorLog.log
>        #WSGIDaemonProcess localhost processes=2 threads=15 display-name=%
> {GROUP}
>        #WSGIProcessGroup localhost
>        <Directory D:/MyTrac/TracProjects>
>                Order allow,deny
>                Allow from all
>        </Directory>
>        <Directory D:/MyTrac/TracWSGIScripts>
>                Order allow,deny
>                Allow from all
>        </Directory>
>        <Directory D:/MyTrac/TracBasicAuth>
>                Order allow,deny
>                Allow from all
>        </Directory>
>
>
>        # Link to list out all Trac Projects
>        WSGIScriptAlias /TracProjects D:/MyTrac/TracWSGIScripts/
> AllProjects.wsgi
>
>        # Settings for MySandbox
>        <Location /TracProjects/Sandbox1>
>                AuthType Basic
>                AuthName "MySandboxAuth"
>                AuthUserFile 
> D:\MyTrac\TracProjects\MySandbox\MySandbox.htpasswd
>                Require valid-user
>        </Location>
>        WSGIScriptAlias /TracProjects/MySandbox D:/MyTrac/TracBasicAuth/
> MySandbox.wsgi
> </VirtualHost>
>
> MySandbox.wsgi:
> import sys
> sys.stdout = sys.stderr
> import os
> os.environ['TRAC_ENV_PARENT_DIR'] = 'D:/MyTrac/TracProjects'
> os.environ['TRAC_ENV'] = 'D:/Trac/TracProjects/MySandbox'
> os.environ['PYTHON_EGG_CACHE'] = 'D:/MyTrac/TracEggCache/MySandbox'
> import trac.web.main
> application = trac.web.main.dispatch_request
>
> Regards,
> Radha.

Hi,
I have a lot of comments but not enough time, so I'll make it short
for now.  The first comment is that you need to be clear on whether
you're trying to host a single Trac environment, or multiple
environments.  You're mixing the methods for doing those, leading to a
lot of confusion.  You should only a need a single wsgi script.  So if
you're trying to do multiple projects, just have something like:

trac.wsgi
import sys
sys.stdout = sys.stderr
import os
os.environ['TRAC_ENV_PARENT_DIR'] = 'D:/MyTrac/TracProjects'
os.environ['PYTHON_EGG_CACHE'] = 'D:/MyTrac/TracEggCache'
import trac.web.main
application = trac.web.main.dispatch_request

And in the Apache config have:
WSGIScriptAlias /TracProjects /path/to/trac.wsgi

Get rid of that existing <Location> directive and instead put in
<LocationMatch ^/TracProjects/[^/]+/login>
</LocationMatch>

Put all your authentication-configuration in there.  Honestly, the
first step I would take would be to wipe out what you already have and
start fresh

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to