# Mod wsgi

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Mod_wsgi
> Markdown URL: https://mediated.wiki/source/Mod_wsgi.md
> Source: https://en.wikipedia.org/wiki/Mod_wsgi
> Source revision: 1220346942
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{third-party|date=August 2014}}
{{DISPLAYTITLE:mod_wsgi}}
'''mod_wsgi''' is an [Apache HTTP Server](/source/Apache_HTTP_Server) module  by Graham Dumpleton that provides a [WSGI](/source/Web_Server_Gateway_Interface) compliant interface for hosting [Python](/source/Python_(programming_language)) based [web application](/source/web_application)s under Apache. As of version 4.5.3, mod_wsgi supports Python 2 and 3 (starting from 2.6 and 3.2).<ref>{{cite web|url=https://modwsgi.readthedocs.io/en/develop/requirements.html|title=mod_wsgi requirements}}</ref>

It is an alternative to [mod_python](/source/mod_python), [CGI](/source/Common_Gateway_Interface), and [FastCGI](/source/FastCGI) solutions for Python-web integration.  It was first available in 2007.

== Installation ==
Later versions of mod_wsgi may be installed in one of two ways:  The original way was as an Apache module, as is commonly used for many languages. From V4, the 'mod_wsgi express' method is also supported.<ref name="Pypi, mod_wsgi" >{{Cite web
  |title=mod_wsgi 4.4.21
  |publisher=Python Software Foundation
  |url=https://pypi.python.org/pypi/mod_wsgi
}}</ref> This is installed as a Python module using setup.py or pip and without needing manual intervention with the Apache configuration. This method simplifies installation for Python developers who are more familiar with Python than with Apache. It also has advantages of virtualization as it creates a local environment without affecting system settings, or requiring root access to install.

==References==
{{Reflist}}

==External links==
* [https://github.com/GrahamDumpleton/mod_wsgi Code repository]
* [http://modwsgi.readthedocs.org Documentation]
* {{Cite web
  |title=mod_wsgi 
  |publisher=Python Software Foundation
  |url=https://pypi.python.org/pypi/mod_wsgi
}}
* {{Cite web 
 |title=modwsgi - Python WSGI adapter module for Apache.
 |website= Code.Google.com (deprecated)
 |url=http://code.google.com/p/modwsgi/
}}

{{Web interfaces}}

Category:Apache httpd modules
Category:Articles with underscores in the title
Category:Web server software

{{compu-network-stub}}

---
Adapted from the Wikipedia article [Mod wsgi](https://en.wikipedia.org/wiki/Mod_wsgi) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Mod_wsgi?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
