> On 27 Aug 2015, at 10:52 pm, [email protected] wrote:
> 
> Dear Graham,
> Thanks for caring.
> 
> On Thursday, August 27, 2015 at 12:25:13 PM UTC+2, Graham Dumpleton wrote:
> Read the last link I gave you. It explains it. The docs are out of date.
> 
> Alright, I will do. Just need a bit of time.
> 
> BTW, I hope you have a WSGIProcessGroup directive to match the 
> WSGIDaemonProcess.
>  
> To my understanding, yes. These are the directives (for clarity `rse/rse` is 
> my Linux `user/group` id; IMS or ims refer to my test applications as a 
> generic name like `imsMain.py` or `imsConfig.py`, etc.)
> 
>         WSGIDaemonProcess rseIMS user=rse group=rse processes=1 threads=16 
> python-path=/home/... 
>         WSGIProcessGroup rseIMS
>         WSGIApplicationGroup rseIMS
>         WSGIImportScript /home/rse/imsMain.py process-group=rseIMS 
> application-group=rseIMS
> 
> My WSGIProcessGroup directive uses the name of the WSGIDaemonProcess.

If you only run the one Python web application in that daemon process group, 
you are better off using %{GLOBAL} for application group. This is the main 
Python interpreter (not a sub interpreter) and using it is better as some third 
party extension modules for Python will not work properly in Python sub 
interpreters, only the main interpreter.

If /home/rse/imsMain.py is actually your WSGI script file, rather than using 
WSGIImportScript, you are better off using:

        WSGIDaemonProcess rseIMS user=rse group=rse processes=1 threads=16 
python-path=/home/... 
        WSGIScriptAlias / /home/rse/imsMain.py process-group=rseIMS 
application-group=%{GLOBAL}

By supplying process-group and application-group options to WSGIScriptAlias, 
you do away with the need for WSGIProcessGroup, WSGIApplicationGroup and 
WSGIImportScript.

The WSGIImportScript isn’t necessary because if both process-group and 
application-group are supplied to WSGIScriptAlias, it will automatically 
preload the WSGI script file on process start.

And yes I know using those options on WSGIScriptAlias aren’t documented except 
in release notes and on my blog. :-)

Graham

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to