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.

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
2  
can you tell me what is the output of: iptables -L –  Hex Nov 8 '12 at 6:49

1 Answer 1

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

 
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.