0

I am trying to setup a remote apache server on centos. I have installed httpd and it is listening to port 80 as it is supposed to. And I am able to connect to the remote system through ssh. but when I try to access the apache server on website using the ip address browser is giving 'Could not connect to error".

My iptable looks like this

iptable

I have tried solutions from this question and none of them are working.

Community
  • 1
  • 1
vishnub1626
  • 2,063
  • 2
  • 14
  • 14
  • Run `netstat -anp|grep :80` to see what IP Apache is bound to. Also confirm that you do not have a firewall or NAT blocking access. – jeffatrackaid Jun 05 '14 at 14:53

2 Answers2

0

Could you have something using NAT in between ? If yes then you have to configure port forwarding.

user3224416
  • 522
  • 5
  • 15
0

If you disabled the SELinux using:

setenforce 0

then your server may be behind a firewall, or NAT, and port 80 need to be enabled there.

M. Adel
  • 401
  • 5
  • 7