0
Digital Ocean에서 nginx를 사용하여 nodejs 사이트를 설정하려고하는데 작동하지 않는 것 같습니다. IP : 포트가 괜찮 으면 localhost에 대해 127.0.0.1을 가리키고 있습니다. 하지만 ngnix를 다시 시작한 후 기본값을 얻었습니다.NGINX 설정이 작동하지 않습니다.
여기 내 설정입니다. 나는 누군가가 내가 여기서 잘못하고있는 것을 볼 수 있기를 바랄 뿐이다.
server {
listen 80;
server_name mydomain.me;
location/{
proxy_pass http://0.0.0.0:3000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
감사합니다. Chris. 나는 그것이 궁극적으로 내가 발견 한 것이라고 믿습니다. – cnak2