简体   繁体   中英

Not able to access apache server on centos using ip address

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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM