Hi Graham! Graham Dumpleton schrieb am Donnerstag, 18. August 2022 um 09:15:32 UTC+2:
> Can you use the recommended daemon mode of mod_wsgi and when doing so set > the lang/locale to what you use. > > See the lang/locale options in: > > > https://modwsgi.readthedocs.io/en/master/configuration-directives/WSGIDaemonProcess.html > Unfortunately, this doesn't change the behaviour… I changed the WSGI settings in the Apache VirtualHost config to WSGIDaemonProcess testserver_proc lang=en_US.UTF-8 locale=en_US.UTF-8 threads=4 WSGIProcessGroup testserver_proc WSGIApplicationGroup testserver_app WSGIScriptAlias /test /usr/lib/test/test.py process-group=testserver_proc …which is actually picked up, according to the Apache log: src/server/mod_wsgi.c(10229): mod_wsgi (pid=1353502): Setting lang to en_US.UTF-8 for daemon process group testserver_proc. src/server/mod_wsgi.c(10242): mod_wsgi (pid=1353502): Setting locale to en_US.UTF-8 for daemon process group testserver_proc. mod_wsgi (pid=1353502): Initializing Python. mod_wsgi (pid=1353504): Initializing Python. mod_wsgi (pid=1353503): Initializing Python. mod_wsgi (pid=1353503): Attach interpreter ''. mod_wsgi (pid=1353504): Attach interpreter ''. mod_wsgi (pid=1353502): Attach interpreter ''. src/server/mod_wsgi.c(9115): mod_wsgi (pid=1353502): Started thread 0 in daemon process 'testserver_proc'. src/server/mod_wsgi.c(9115): mod_wsgi (pid=1353502): Started thread 1 in daemon process 'testserver_proc'. src/server/mod_wsgi.c(9115): mod_wsgi (pid=1353502): Started thread 2 in daemon process 'testserver_proc'. src/server/mod_wsgi.c(9115): mod_wsgi (pid=1353502): Started thread 3 in daemon process 'testserver_proc'. mod_wsgi (pid=1353502): Create interpreter 'testserver_app'. [remote 172.16.96.65:47970] mod_wsgi (pid=1353502, process='testserver_proc', application='testserver_app'): Loading Python script file '/usr/lib/test/test.py'. …but the script output reported by curl *still* is WSGI: value of 'X_TEST': 0xc3 0x83 0xc2 0xa4 Any idea? Thanks, Albrecht. -- 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/6ca07f28-b050-4e76-b6c1-040ef014c5d7n%40googlegroups.com.
