Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 want to install nodejs and nginx on Ubintu Server 12.4 and set they up for robust working on. Can you provide answers for the following questions:

  1. Where should I install nodejs?
  2. Where should I to locate nodejs project files and what permissions I need to set?
  3. How should I setup nginx as proxy for nodejs?
share|improve this question
up vote 1 down vote accepted

nodejs is available as a package on Precise:

So, it should be sufficient to run apt-get install nodejs nginx and let the package maintainers take care of the installation.

There's plenty of documentation on setting up nginx as a proxy; just look around. For example, here's the official documentation the proxy module.

For the location of project files, that's up to your project. They will need permissions such that the user running nodejs can access them.

share|improve this answer
Thanks. Can you provide some links about setting up nginx as a proxy please? – Erik Oct 23 '12 at 19:47
Updated to point at the official docs. Really, you can google "nginx proxy" and come up with that. – cjc Oct 23 '12 at 19:50

Your Answer


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.