Closed GoogleCodeExporter closed 8 years ago
You cannot run two Trac instances in the same Python interpreter when using
os.environ type configuration. You must use WSGI environment style
configuration. One way is to use WSGI script file of:
import trac.web.main
application = trac.web.main.dispatch_request
and Apache configuration of:
WSGIScriptAlias /projects/main /var/trac/apache/trac.wsgi
<Location /projects/main>
SetEnv trac.env_path /var/trac/main
</Location>
WSGIScriptAlias /projects/noc /var/trac/apache/trac.wsgi
<Location /projects/main>
SetEnv trac.env_path /var/trac/noc
</Location>
<Directory /var/trac/apache>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
If you insist on using os.environ type configuration, create two distinct
daemon process groups and delegate each separate application to a distinct
daemon process.
Read through the Trac integration guide for further examples:
http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac
Original comment by Graham.Dumpleton@gmail.com
on 17 Apr 2008 at 9:12
Thanks a lot! It is works now.
Original comment by kingo...@gmail.com
on 17 Apr 2008 at 10:32
Correct recipe covered by documentation.
Original comment by Graham.Dumpleton@gmail.com
on 17 Apr 2008 at 12:10
Original issue reported on code.google.com by
kingo...@gmail.com
on 17 Apr 2008 at 9:02