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.

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.

Related

share|improve this question

2 Answers 2

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

 
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.