title: mod_wsgi
category: page
slug: mod-wsgi
sortorder: 0524
toc: False
sidebartitle: mod_wsgi
meta: mod_wsgi is a Web Server Gateway Interface (WSGI) implementation that runs Python web application code.


[mod_wsgi](https://modwsgi.readthedocs.io/en/develop/)
([source code](https://github.com/GrahamDumpleton/mod_wsgi))
is an implementation of the [Web Server Gateway Interface](/wsgi-servers.html) 
specification for running Python code in the
[Apache HTTP Server](/apache-http-server.html). mod_wsgi is implemented
as an Apache HTTP Server module and it supports both 
[Python 2 and Python 3 code](/python-2-or-3.html).


### mod_wsgi resources
* The [official documentation](https://modwsgi.readthedocs.io/en/develop/)
  is wonderful for getting started as well as digging into how to
  configure your server for better security.
