我在連接埠 8080 上有一個 NodeJS 應用程序,我的 Nginx 檔案如下所示:
server {
listen 80 default_server;
listen [::]:80 ipv6only=on;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
proxy_pass http://localhost:8080;
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;
}
但是當我轉到:
XX.XXX.XXX
我有 403 錯誤時,我需要轉到:
XX.XXX.XXX:8080
出了什麼問題?