mod_wsgi
![]() | This article contains promotional content. (May 2008) |
mod_wsgi is an Apache HTTP Server module that provides a WSGI compliant interface for hosting Python 2.3+ based web applications under Apache.
==mod_wsgi is great for python hosting==
This article may meet Wikipedia's criteria for speedy deletion because in its current form it serves only to promote or publicise an entity, person, product, or idea, and would require a fundamental rewrite in order to become encyclopedic. However, the mere fact that a company, organization, or product is a page's subject does not, on its own, qualify that page for deletion under this criterion. This criterion also does not apply where substantial encyclopedic content would remain after removing the promotional material as deletion is not cleanup; in this case please remove the promotional material yourself, or add the {{advert}} tag to alert others to do so. See CSD G11.
If this article does not meet the criteria for speedy deletion, or you intend to fix it, please remove this notice, but do not remove this notice from pages that you have created yourself. If you created this page and you disagree with the given reason for deletion, you can click the button below and leave a message explaining why you believe it should not be deleted. You can also visit the talk page to check if you have received a response to your message. Note that this article may be deleted at any time if it unquestionably meets the speedy deletion criteria, or if an explanation posted to the talk page is found to be insufficient.
Note to administrators: this article has content on its talk page which should be checked before deletion. Administrators: check links, talk, history (last), and logs before deletion. Consider checking Google.This page was last edited by 24.25.39.201 (contribs | logs) at 19:35, 10 May 2008 (UTC) (17 years ago) |
Easy installation and upgrade of WSGI applications
If your web hoster has prepared Apache with mod_wsgi and enabled it for your webspace, installing a WSGI app can be as easy as dropping a single myapp.wsgi file into your web space.
Upgrading the WSGI app code can be as easy as uploading new code (touching that myapp.wsgi file).
Finally, installing Python web applications can be as easy as with PHP!
Automatic process management in daemon mode
mod_wsgi not only offers running the wsgi application in some embedded mode (similar to what Mod_python does), but additionally offers a daemon mode (which is strongly recommended for python hosting due to separation and security reasons).
mod_wsgi does a good job managing those daemon processes, they...
- will be started automatically by apache/mod_wsgi (no need for additional init scripts)
- can be started using different uid/gid (good for security and separation)
- can be terminated/restarted after processing a specific amount of requests
- can be terminated after some idle timeout (and will be automatically restarted when a request is received)
- can be automatically restarted when the myapp.wsgi file is touched, so it is easy to install new code
- will be killed and restarted in case they become unresponsive