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

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

1 Answer 1

up vote 1 down vote accepted

nodejs is available as a package on Precise:

http://packages.ubuntu.com/precise/nodejs

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
1  
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

 
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.