Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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:

passenger-install-nginx-module

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.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

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

http://YOUR_SERVER_IP:3000

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

share|improve this answer

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.

share|improve this answer
    
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

 
discard

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

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