Hi there,

I'm setting up a complex Trac setup with many projects and thus am using 
TracEnvParentDir. 
My approach works except that a broken Trac project is displayed where at most 
the project listing should be shown. 
Here are the Trac related lines of my apache config:

    <Macro TracProjects $projectname>
        <Location /trac/$projectname>
                SetHandler mod_python
                PythonHandler trac.web.modpython_frontend
                PythonOption TracEnvParentDir /var/projects/$projectname/trac
                PythonOption TracUriRoot /trac/$projectname
        </Location>

        <LocationMatch "/trac/$projectname/[^/]+/login">
                AuthType Basic
                AuthName "$projectname"
                AuthUserFile /var/projects/$projectname/$projectname.passwd
                Require valid-user
        </LocationMatch>
    </Macro>

If the Macro part confuses you, just replace the $projectname part with a real 
name in mind.
Assume the project name is 134117 and there's a Trac instance called 134117 in 
the /var/projects/134117/trac directory.

- At http://hostname/trac/134117/134117 I can access the project just fine. 
- If I access e.g. http://hostname/trac/134117/invalid  so with an invalid 
name at the end I get the project listing. 
_BUT_

- If I access http://hostname/trac/134117 or http://hostname/trac/134117/ I 
see the following, weird thing:
http://img57.imageshack.us/my.php?image=tracbroken0kc.png

What I would expect to see is the project listing, not this broken thing.

Anybody have an explanation for this behavior and/or how I can fix it?

Thank you,
Michael.
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to