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

What'd I'd like to do is have a node.js program be hosted in public_html/<appname> and be accessible by heading to - the server is Ubuntu 10.04, I'm using Apache as my HTTP server. Is it even possible?

share|improve this question
up vote 5 down vote accepted

What you probably need is mod_proxy and ProxyPass for Apache.

Run Apache on port 80, and use the <Location> config in Apache to pass the query along to Node.js which would be on another port e.g. 8080.

<Location /<appname>/>
    ProxyPass http://nodejsip:8080/
share|improve this answer

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.