📜 ⬆️ ⬇️

mod_wsgi 3.1 was released on November 25

What has been new in version 3.0:
  1. Python support 3.1 and up.
  2. The options “process-group”, “application-group”, “callable-object” and “pass-authorization” can be placed in the WSGIScriptAlias ​​and WSGIScriptAliasMatch directives
  3. If the client breaks the connection during iterator processing instead of throwing an exception, a debug message is now written to the log
  4. The “chroot” option has been added to the WSGIDaemonProcess directive, which allows you to run applications more independently
  5. Added global directive WSGIPy3kWarningFlag, when using python2.6 warnings will be issued
  6. Fixed “assertion error” if the python was compiled with the directive Py_DEBUG
  7. Added support for "Content-Type: chunked" in the query ("WSGIChunkedRequest" directive). The data is glued together and transferred to the application for processing.
  8. HTTP header values ​​are now passed in the environment reference for access, authorization and authentication hooks
  9. The flag “flag wsgi.run_once” is not set to True, when working in daemon mode, when “maximum-requests” is set to 1. In case of using multiple threads, the “maximum-requests” parameter is checked only after the request has been completed, therefore there is no guarantee whether only one request was executed
  10. Now the interpreter is not initialized in the parent process, but only after the child is created.
  11. Messages from extension modules on C fall into the logs of virtual hosts, as expected, and not in the general log, as it was before
  12. Now it is impossible to write messages to the logs of "foreign" virtual hosts.
  13. In daemon mode, internal redirects can be made using the “Location” header in the response.
  14. In daemon mode, the "WSGIErrorOverride" directive can be used to return the standard Apache error page.
  15. Added directive "WSGIPythonWarnings" working by analogy with the interpreter "-W" directive
  16. An option “cpu-time-limit” has been added to the “WSGIDaemonProcess” directive that determines the amount of CPU time after which the process will be restarted
  17. Added “cpu-priority” option to the “WSGIDaemonProcess” directive
  18. Added directive "WSGIHandlerScript" allowing to define a script that processes a certain type of files


And many more fixes and improvements, which can be found in the original here: code.google.com/p/modwsgi/wiki/ChangesInVersion0301

Download as usual here:
code.google.com/p/modwsgi/downloads/list
')
UPD:
Yes, it works
./configure --with-python = python3.1 --disable-framework
make && sudo make install

Source: https://habr.com/ru/post/79474/


All Articles