Estou executando um proxy nginx (v. 1.20.1) em minha máquina Windows. O seguinte é nginx.conf
:
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen *:80;
server_name localhost;
location / {
proxy_pass http://localhost:9000;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
Quando digito localhost
no meu navegador, obtenho a resposta correta.
No entanto, quando uso meu endereço IP, ele diz que o site não pode ser acessado.
Tentei permitir o acesso externo na porta 80, bem como o acesso nginx.exe
no Firewall do Windows Defender. Também desativei o firewall no meu Kaspersky Internet Security.
Alguma idéia de qual é o problema?