1
I have this simple nginx config file:
server {
listen 4000;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}
nginx service is running, but if I run:
nc -z localhost 4000
I don't get a response, but if I check for port 80 it works:
nc -z localhost 80
Connection to localhost 80 port [tcp/http] succeeded!
I am running nginx on docker with ports 80 and 4000 exposed.
I am getting connection refused to port 4000, as well as exit code 1 (not success). I think this is related more to an nginx thing that I don't understand – Simon Ernesto Cardenas Zarate – 2018-06-18T19:09:38.403
@SimonErnestoCardenasZarate Check Docker port forwards and firewall. – None – 2018-06-18T19:10:59.137
@SimonErnestoCardenasZarate And nginx status and logs. – None – 2018-06-18T19:11:32.390