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

I have installed Apache Web Server on an CentOS 6 machine and configured it to run listen on an IP X.X.X.X:8080 in httpd.conf file but it is not working when i tried to access the Web server from browser using http://x.x.x.x:8080

share|improve this question
can you tell me what is the output of: iptables -L – Hex Nov 8 '12 at 6:49
up vote 2 down vote accepted

By default CentOS has most input ports closed in the firewall so you will almost certainly need to open port 8080 in your firewall

iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPT

If this works then you need to save the state of the firewall

service iptables save
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.