Oh, you need to be using mod_wsgi 3.X to be able supply options to
WSGIScriptAlias like that. There is also a pass-authorization option
as well which can replace WSGIPassAuthorization.

Graham

On Thursday, August 26, 2010, Graham Dumpleton
<[email protected]> wrote:
> On Thursday, August 26, 2010, Noah Kantrowitz <[email protected]> wrote:
>> So I have several Python apps setup, each in their own process group (or at
>> least thats the idea). Most are inside virtualenvs (chishop is inside a
>> buildout), so I used the snippet from the wiki at the top of the scripts.
>> Everything works fine when right after the server is started, but after a
>> while we will see errors that can only happen if a request is being routed
>> to the wrong process (ex. traceback with another app's paths in it). My
>> config is at http://paste.pocoo.org/show/aiXzznMqQclwDvPkj4pi/ . Am I
>> perhaps misusing process groups or need to add something else?
>
> Instead of:
>
>         WSGIScriptAlias / /srv/www/trac/cgi-bin/trac.wsgi
>         WSGIDaemonProcess trac maximum-requests=1000
>
> Use:
>
>     WSGIDaemonProcess trac maximum-requests=1000
>     WSGIScriptAlias / /srv/www/trac/cgi-bin/trac.wsgi
> process-group=trac application-group=%{GLOBAL}
>
> And then remove the WSGIProcessGroup and WSGIApplicationGroup
> directives inside of the Location directives etc.
>
> Do something similar for all uses. Note that WSGIDaemonProcess has to
> come before WSGIScriptAlias when doing this.
>
> By binding process and application group on WSGIScriptAlias and not by
> Location, then guaranteed will run where you expect it.
>
> Do note that using both of these options will also cause WSGI script
> file to be loaded on process start and not on first request, as it
> knows for sure in advance which process/interpreter to use.
>
> Also suggest adding:
>
>   WSGIRestrictEmbedded On
>
> If not using embedded mode. If for some reason something not delegated
> to daemon mode then you will with that get an error to highlight it.
>
> In a meeting at the moment, so will look further at configuration
> later and perhaps ask questions or make other suggestions.
>
> BTW, is everything inside of the one virtual host, or do you have
> multiple virtual hosts with applications contained in them?
>
> Graham
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en.

Reply via email to