PassengerPython
[edit] Dispatching Python (WSGI) via Passenger
This is confirmed to run under CentOS 5 and Debian 5.3 with Python 2.5 and Passenger 2.2.5 on Nginx 0.7.* and 0.8.27.
The full guide to install Passenger for Nginx can be seen here (http://kbeezie.com/view/using-python-nginx-passenger/). This method of using Passenger to run Python (WSGI) applications is a "proof of concept" feature of Passenger/Mod_rails (http://www.modrails.com). The Passenger Installer requires recompiling Nginx, configurations however are preserved.
[edit] Conventions
Passenger is enabled by adding these two lines to the http block (The Passenger Installer automatically adds these for you)
passenger_root /path/to/libs/ruby/gems/1.9.1/gems/passenger-2.2.5;
passenger_ruby /path/to/ruby;
Example server configuration to load a Python (WSGI) application.
server {
listen 80;
server_name localhost;
root /opt/nginx/html/public/;
passenger_enabled on;
}
[edit] Note
Ruby and RubyGems are required for Passenger to install.
The user manual for Passenger and Nginx can be found here (http://www.modrails.com/documentation/Users%20guide%20Nginx.html)









