I should have spotted it earlier. The following is wrong:

  <Directory /var/www/project/trac/>

It should be:

  <Directory /var/www/project/>

Because it was wrong you weren't even running in daemon mode but still
in embedded mode.

BTW, the mod_wsgi documentation says to put the WSGI script file in a
special subdirectory of its own, not in the parent directory to the
Trac instance. A subdirectory is used so that you are not telling
Apache that it could technically serve up files from your Trac
instance. A misconfiguration of your server could at the moment
technically allow people to download your Trac instance data because
of security on the file system being too loose.

Graham

On Jan 24, 5:57 pm, Andrea Tomasini <[email protected]> wrote:
> On 23 Jan, 2009, at 10:41 , Graham Dumpleton wrote:
>
> > On Jan 23, 4:37 am, Andrea Tomasini <[email protected]> wrote:
>
> >> On 22 Jan, 2009, at 16:02 , Graham Dumpleton wrote:
>
> > Use of SetEnv is mentioned in:
>
> >  http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac
>
> > Any page on the Trac wiki isn't going to mention all different
> > possible ways that mod_wsgi can be configured.
>
> I figured it out, that's where I copied the configuration from...
>
> > Trying using first recipe in section at:
>
> >  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Re...
>
> > to wrap Trac application and verify what environment is being passed
> > to Trac. If the correct environment is being passed, then something
> > must be going wrong in Trac.
>
> I tried it out... and beside logging a _lot_ there is actually no trac  
> or TRAC variable in there... even if the SetEnv is set in the  
> Directory section of the apache config.
>
> > What version of Trac are you using?
>
> Trac 0.11.2.1
> Apache+mod_wsgi+python2.5 on debian lenny :-)
>
> Thanks for your help
>
> > Graham
>
> ANdreaT
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to