How to configure Nginx to serve a variety of back-ends via multiple FCGI processes?

Posted by Ben Horton on Server Fault See other posts from Server Fault or by Ben Horton
Published on 2009-11-18T07:16:35Z Indexed on 2010/03/16 18:01 UTC
Read the original article Hit count: 236

Filed under:
|
|
|
|

I've seen a lot of tutorials showing one how to set up PHP/Python/Perl/RoR on nginx via various FCGI processes.

None of the tutorials that I found show one how to serve multiple FCGI services off one server.

How would one configure the stable nginx (nginx-0.7.64) to serve multiple FCGI processes (one for each of the above languages)?

Example addresses for each FCGI process are as follows:

127.0.0.1:8080 - PHP
127.0.0.1:8081 - Python
127.0.0.1:8082 - Perl
127.0.0.1:8083 - Ruby on Rails

An example configuration file that shows one how to implement multiple FCGI's off one server is really what I need. Perhaps others will benefit as well.

© Server Fault or respective owner

Related posts about nginx

Related posts about fastcgi