On May 22, 9:25 am, turkanis <[email protected]> wrote:
> I have four trac installations that I would like to switch from
> mod_python to mod_wsgi.
>
> With my first configuration attempt, I occasionally get the error
> "instance.__dict__ not accessible in restricted mode".
You have to run them all in the first interpreter, you are only doing
that for one. Read the documentation as it explains what you need to
do to host multiple sites.
http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac
Graham
> It appears to be the same problem referenced
> here:http://www.mail-archive.com/[email protected]/msg12346.html.
> I haven't been able to find any info on the resolution of that
> problem. My apache configuration and trac.wsgi are listed below.
>
> Any help would be greatly appreciated.
>
> --
>
> trac.conf:
>
> WSGIDaemonProcess tracs threads=10 maximum-requests=500
> <Directory /var/trac/wsgi>
> WSGIProcessGroup tracs
> WSGIApplicationGroup %{GLOBAL}
> Order deny,allow
> Allow from all
> </Directory>
> <VirtualHost *:80>
> ServerName trac.XXXX.net
> SetEnv trac.env_path /var/trac/projects/trac.XXXX.net
> WSGIScriptAlias / /var/trac/trac.wsgi
> <Directory "/var/trac/projects/trac.XXXX.net/htdocs">
> AllowOverride None
> </Directory>
> <Location /login>
> AuthType Basic
> AuthName "XXXX"
> AuthUserFile /var/trac/projects/trac.XXXX.net.passwd
> Require valid-user
> </Location>
> </VirtualHost>
> <VirtualHost *:80>
> ServerName trac.XXXX.com
> SetEnv trac.env_path /var/trac/projects/trac.XXXX.com
> WSGIScriptAlias / /var/trac/trac.wsgi
> <Directory "/var/trac/projects/trac.XXXX.com/htdocs">
> AllowOverride None
> </Directory>
> <Location /login>
> AuthType Basic
> AuthName "XXXX"
> AuthUserFile /var/trac/projects/trac.XXXX.com.passwd
> Require valid-user
> </Location>
> </VirtualHost>
> <VirtualHost *:80>
> ServerName trac.XXXX.com
> SetEnv trac.env_path /var/trac/projects/trac.XXXX.com
> WSGIScriptAlias / /var/trac/trac.wsgi
> <Directory "/var/trac/projects/trac.XXXX.com/htdocs">
> AllowOverride None
> </Directory>
> <Location /login>
> AuthType Basic
> AuthName "XXXX"
> AuthUserFile /var/trac/projects/trac.XXXX.com.passwd
> Require valid-user
> </Location>
> </VirtualHost>
> <VirtualHost *:80>
> ServerName trac.XXXX.net
> SetEnv trac.env_path /var/trac/projects/trac.XXXX.net
> WSGIScriptAlias / /var/trac/trac.wsgi
> <Directory "/var/trac/projects/trac.XXXX.net/htdocs">
> AllowOverride None
> </Directory>
> <Location /login>
> AuthType Basic
> AuthName "XXXX"
> AuthUserFile /var/trac/projects/trac.XXXX.net.passwd
> Require valid-user
> </Location>
> </VirtualHost>
>
> --
>
> trac.wsgi:
>
> import os
>
> os.environ['PYTHON_EGG_CACHE'] = '/var/trac/egg-cache'
>
> import trac.web.main
> application = trac.web.main.dispatch_request
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---