Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: - PHP - Python - Perl - 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.

share|improve this question

Just change:

location /
FCGI..PARAMETERS (find on the web)


location /python/

python FCGI..PARAMETERS (find on the web)

location /php/
php FCGI..PARAMETERS (find on the web)

location /perl/
perl FCGI..PARAMETERS (find on the web) - although nginx supports it embedded.

location /ror/
ror FCGI..PARAMETERS (find on the web)

Make the above folders, python/php/perl/ror under /var/www/nginx-default/ -> each will be served by a different FCGI process as per your FCGI configuration -> just place the files that need to be executed in their an run the fcgi process + restart nginx.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.