>
> Here you go:
> WSGIPythonHome /path/to/python
> WSGIDaemonProcess my_app processes=4 threads=2 display-name=my_app
> python-path=/python/path/to/modules
> WSGIProcessGroup my_app
> WSGIScriptAlias /my_app /path/to/main.wsgi
>
> <Location /my_app >
> WSGIProcessGroup my_app
> </Location>
>
>
> Change all this to:
>
> WSGIDaemonProcess my_app processes=4 threads=2 display-name=my_app \
>   python-home=/path/to/python python-path=/python/path/to/modules
>
> WSGIScriptAlias /my_app /path/to/main.wsgi \
>  process-group=my_app application-group=%{GLOBAL}
>
> If this is the only WSGI application you are running, also add:
>
> WSGIRestrictEmbedded On
>
>
Graham this worked!  Thanks so much!

I am on mod_wsgi 3.4.

I did have to make one small tweak though to get it to work as needed.  I
changed application-group from %{GLOBAL} to the same name as process-group.
 I found that when it was ${GLOBAL}, there were strange clashing python
errors, where it seemed like the 4 apache processes were not running
independently of each other, at least on Apache startup - perhaps this is
the intended behavior? In my case I do not want them to share anything
between each other.  Also, with the ${GLOBAL} setting, it seemed like
main.wsgi was being executed on EVERY request rather than just on startup;
again, perhaps this is the intended behavior when using ${GLOBAL}.

Also, it is not the only WSGI application I am running, so I did not add
the WSGIRestrictEmbedded On directive.

My final config is below - I will try to be consistent with the renaming:

WSGIDaemonProcess my_app processes=4 threads=2 display-name=httpd-my_app
python-path=/path/to/my_app/modules python-home=/path/to/python
WSGIScriptAlias /my_app /path/to/my_app/main.wsgi process-group=my_app
application-group=my_app
<Directory /path/to/my_app >
        Order allow,deny
        Allow from all
</Directory>

Once again thank you so much for working through this with me, I really
appreciate it!

-- Josh

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to