If your apache or Nginx or tomcat server is configured properly still your site is not opening then check firewall and port is opened on the internet.
Check the status of your firewall. use this command
firewall-cmd --state
running
Check which zones are active
[root@vps147238 purab]# firewall-cmd –get-active-zones
public
interfaces: eth0
Open port 80 and port 443 port.
firewall-cmd –zone=public --add-service=http
firewall-cmd --zone=public --add-service=https
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --reload
Now check port 80 and 443 opened
firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: dhcpv6-client ssh https
ports: 80/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules: