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

Here's my situation:

I have a server running Apache on port 80, a node.js application on port 8000, and I'd like to know if I have to open ports in order for ProxyPass and mod_proxy to work.


share|improve this question
up vote 3 down vote accepted

Port 80 has to be open as Apache will serve external requests on it.

If your Node.js application is running on the same host as Apache you don't need to open port 8000.

But if your Node.js application is running on different host than Apache, then you'll need to open port 8000 only for the IP of the server where Apache is running.

share|improve this answer

If you use something like this:

ProxyPass http://localhost:8000

and default input policy is DROP:

iptables -P INPUT DROP

so, you still need to open port 8000 on the loopback interface:

iptables -A INPUT -i lo -p tcp --dport 8000 -j ACCEPT
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.