On Jun 13, 2:44 am, Barzo <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've setup a Trac 0.11rc1 on Ubuntu with this layout:
>
> /usr/local/trac
>    +--- eggs [<- PYTHON_EGGS_CHACHE for all projects]
>    +--- edp
>            trac.htdigest [<- Password file for AccountManager PlugIn]
>            trac.ini         [<- Config shared by all project in edp]
>            trac.wsgi
>           +--- Project 1
>           +--- Project 2
>           +--- Project n
>    +--- rs
>            trac.htdigest [<- Password file for AccountManager PlugIn]
>            trac.ini         [<- Config shared by all project in rs]
>            trac.wsgi
>           +--- Project 1
>           +--- Project 2
>           +--- Project n
>
> First of all...it may be work?
> Second, my /etc/apache2/site-available/trac file for apache is :
>
> NameVirtualHost *:80
> <VirtualHost *:80>
>    DocumentRoot /usr/local/trac
>
>    WSGIScriptAlias /trac_edp /usr/local/trac/edp/trac.wsgi
>    <Directory /usr/local/trac/edp>
>       WSGIApplicationGroup %{GLOBAL}
>       Option Indexes FollowSymLinks MultiViews
>       AllowOverride AuthConfig
>       Order deny,allow
>       Allow from all
>    </Directory>
>
>    WSGIScriptAlias /trac_rs /usr/local/trac/rs/trac.wsgi
>    <Directory /usr/local/trac/rs>
>       WSGIApplicationGroup %{GLOBAL}
>       Option Indexes FollowSymLinks MultiViews
>       AllowOverride AuthConfig
>       Order deny,allow
>       Allow from all
>    </Directory>
> </VirtualHost>
>
> But I think it not right because strange things happens...
> for example sometimes if I load from my browserhttp://myTracServer/trac_edp
> instead to appear /usr/local/trac/edp projects I see /usr/local/trac/
> rs instead!
>
> Can someone give me some suggestions?

Read the mod_wsgi documentation on Trac integration again.

  http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac

It explains in there that you cannot use os.environ method of defining
Trac location in WSGI script file for multiple Trac instances when
using mod_wsgi embedded mode.

Use the Apache SetEnv method described in the document instead.

You may also want to consider delegating each Trac instance to a
separate process using mod_wsgi daemon mode.

Graham
--~--~---------~--~----~------------~-------~--~----~
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