A
A
Axewell2019-04-24 15:01:41
Nginx
Axewell, 2019-04-24 15:01:41

Why is there no external access to web servers in the Nginx + Apache bundle?

On a remote machine, I use the nginx + apache bundle, the servers start up, but there is no access to them from the outside.
Here are the command outputs:
$ nmap

Host is up (0.00025s latency).
Not shown: 998 filtered ports
PORT     STATE  SERVICE
80/tcp   closed http
8080/tcp closed http-proxy

$ netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      23962/nginx: master 
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      23939/httpd         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      6565/sshd           
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      6672/master         
tcp6       0      0 :::22                   :::*                    LISTEN      6565/sshd           
tcp6       0      0 ::1:25                  :::*                    LISTEN      6672/master

I see that the ports are closed, but I don’t know how to cure, I don’t really understand, I’ll ask you to give detailed answers. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2019-04-24
@martin74ua

firewallcmd --add-service=http --permanent
firewallcmd --add-service=https --permanent
firewallcmd --reload

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question