mod_wsgi

Mod_wsgi is a module for the Apache HTTP Server that enables the execution of Python programs by the webserver. WSGI (Web Server Gateway Interface) is a generic interface between web servers and Python applications. Since the module mod_wsgi WSGI interface implements a mediation layer between the web server and Python environment is unnecessary.

Objectives

  • High execution speed,
  • Simple usability of WSGI and
  • Applicability on shared servers.

So far, Python is offered by web hosting companies mainly with the slow interface CGI; by mod_wsgi should change this and Python are established in the mass market as an alternative to PHP.

Technology

Mod_wsgi The module can be run embedded in the Apache HTTP server or as a separate system service (daemon ). With the former, a higher throughput can be achieved, while the latter allows a clear separation from the Web server. The so-called daemon mode allowing to run each process with another user account, which is an important safety measure for shared web servers. That's in addition to the native implementation of WSGI, a significant advantage over mod_python.

Programming is mod_wsgi in the programming language C. The elimination of a WSGI network layer and the efficient implementation of the memory footprint is reduced and execution speed higher than WSGI adapters for mod_python or alternative FASTCGI/SCGI/CGI- or proxy- based solutions.

Prerequisite for the operation is in the Apache HTTP Server versions 1.3, 2.0 or 2.2 and Python 2.3 or later.

577568
de