Is it possible to partition traffic for a single Django site across 
multiple processes i.e. use WSGIScriptAlias to point to the same WSGI 
script but configure a subset of URLs to route to different processes? 

Apache virtual host configuration excerpt:

WSGIApplicationGroup api
WSGIDaemonProcess api processes=2 display-name='%{GROUP}' 
lang='en_US.UTF-8' locale='en_US.UTF-8'
WSGIScriptAlias /api <path>/wsgi.py process-group=api application-group=api

WSGIApplicationGroup web
WSGIDaemonProcess web processes=5 display-name='%{GROUP}' 
lang='en_US.UTF-8' locale='en_US.UTF-8'
WSGIScriptAlias / <path>/wsgi.py process-group=web application-group=web

When configured like this /api traffic does appear to be picked up by the 
correct process but fails Django URL resolution (and raises a 404).

Quite possible that this is purely a Django issue, but just want to check 
if this approach is feasible / advisable.

Thanks.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/7907f10d-c39b-48ea-81b7-0a38a9125a21n%40googlegroups.com.

Reply via email to