For daemon mode, use python-path option to WSGIDaemonProcess instead.
> # Allow apache to serve static content.
> # Your site is configured to mount at /ceaf/ (use --mount to change
> this)
>
> Alias /ceaf/images /usr/src/tg2env/ceaf/ceaf/public/images
> Alias /ceaf/css /usr/src/tg2env/ceaf/ceaf/public/css
> Alias /ceaf/javascript /usr/src/tg2env/ceaf/ceaf/public/javascript
>
> # Choose deamon mode with 10 threads and 3 processes.
> # For small to medium website.
> WSGIApplicationGroup %{GLOBAL}
You are using a single daemon process but forcing both applications to
run in same interpreter. For TurboGears this likely isn't going to
work.
Use two daemon process groups and delegate each application to different one.
> WSGIDaemonProcess ceaf threads=10 processes=3
> WSGIProcessGroup ceaf
> WSGIScriptAlias /ceafv1 /usr/src/tg2env/ceaf/apache/ceaf.wsgi
> WSGIScriptAlias /ceafv2 /usr/src/tg2env/ceafv2/apache/ceaf.wsgi
WSGIDaemonProcess ceafv1 threads=10 processes=3
WSGIDaemonProcess ceafv2 threads=10 processes=3
WSGIScriptAlias /ceafv1 /usr/src/tg2env/ceaf/apache/ceaf.wsgi
<Location /ceafv1>
WSGIProcessGroup ceafv1
WSGIApplicationGroup %{GLOBAL}
</Location>
WSGIScriptAlias /ceafv2 /usr/src/tg2env/ceafv2/apache/ceaf.wsgi
<Location /ceafv2>
WSGIProcessGroup ceafv2
WSGIApplicationGroup %{GLOBAL}
</Location>
Graham
> WSGISocketPrefix /var/run/wsgi
> ------------------------
>
> Any idea where the problem could be?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups "modwsgi" group.
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to modwsgi+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
>
>
2011/7/16 Juan Antonio Ibáñez <juani...@gmail.com>:
> Do you know if possible to set up / as one of two apps?
Yes you can. You just need to make sure that WSGIScriptAlias for most
deeply nested path is first.
Would also look at qualifying things based on Directory of WSGI script
at that point rather than Location and URL. Using Location with '/' is
actually redundant as that is what VirtualHost level implies.
Directory is more specific anyway.
WSGIDaemonProcess ceafv1 threads=10 processes=3
WSGIDaemonProcess ceafv2 threads=10 processes=3
WSGIScriptAlias /ceafv1 /usr/src/tg2env/ceaf/apache/ceaf.wsgi
<Directory /usr/src/tg2env/ceaf/apache>
WSGIProcessGroup ceafv1
WSGIApplicationGroup %{GLOBAL}
</Directory>
WSGIScriptAlias / /usr/src/tg2env/ceafv2/apache/ceaf.wsgi
<Directory /usr/src/tg2env/ceafv2/apache>
WSGIProcessGroup ceafv2
WSGIApplicationGroup %{GLOBAL}
</Directory>
Graham