I have a ubuntu 10.04 server and i've installed nginx from repositories with:

apt-get install nginx

i have all my sites running and i want to install redmine but i'm having problems with passenger. I have installed passenger but i can add it to nginx because i dont have the sources so i can't use:


Would this break my current nginx installation? Is there any way of install passenger module? can i have 2 nginx servers running on the same machine, different port?I could install redmine in a nginx on another port.

Thank you all.


You can use Passenger Standalone (which is based on nginx) and set this to listen on different port or IP than main nginx.

In your case simply run:

sudo passenger start

in redmine root directory. If everything is ok you should see redmine under


More info: http://www.modrails.com/documentation/Users%20guide%20Standalone.html


Either install it from Brightbox repository or you must recompile the Nginx. Sure, you also can run 2 Nginx instances with different port if you really want.

I can't believe i have to recompile nginx to add a module!

AFAIK, Nginx doesn't support the loadable modules mechanism.

  • i know about brightbox but it means a new installation too.I can't believe i have to recompile nginx to add a module!! I'm talking about a production site so i don't want to recompile or reinstall and loose my webs or run into trouble.I was thinking in install a second nginx instance and migrate all webs there and then remove the first one, but installing redmine is not so important for doing all this work. – Oterox Sep 23 '11 at 7:54
  • @Oterox: Nginx requires does not support dynamic loading of modules for performance reasons, recompiling nginx does not require any downtime of your webserver, though. – Martin Fjordvald Sep 23 '11 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.