Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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'm currently interested in playing with node, so I want to build a small app for my company. We have an apache web server that handles our current web applications. My question is, how can I also host a node application on this same server, without having to make users of the app enter a port number? IE:

My main server ip is: 123.456.789 -> goes to main server (port 80) -> goes to main server (but the app is running on port 3000)

How do I get to go to that main server but know to use port 3000 (without having my users enter the port in the url)?

I'm assuming I have to let the traffic come in on port 80 as it would, and let apache redirect? Thanks, I'm no server admin, and I know just enough to get me in trouble :)

share|improve this question
up vote 0 down vote accepted
# The *:80 part must match the config of your existing virtual host(s), and
# a NameVirtualHost directive in your main config somewhere.
<VirtualHost *:80>
   # This determines what requests get sent to this virtual host:
   # Proxy all requests to the port 3000 listener:
   ProxyPass /
   # This handles the translation of the location header in 30x responses:
   ProxyPassReverse /

If your existing config isn't using virtual hosts, you'll need some other adjustments first - provide more details about the existing config and we can assist.

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.