这是我对NGINX的配置,我可以看到,在点击终点时,它会出现499错误(在NGINX日志中)和504错误(在浏览器中)
worker_processes 4;
events {worker_connections 1024; }
http { sendfile on;
upstream app_servers {
server xxx.com:5000;
keepalive 32;
}
server {
listen 80;
rewrite ^ https://$host$request_uri? permanent;
}
server {
#listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/wildcard.xxx.crt;
ssl_certificate_key /etc/nginx/ssl/wildcard.xxx.key;
location / {
proxy_pass http://app_servers;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_connect_timeout 180;
proxy_send_timeout 180;
proxy_read_timeout 180;
send_timeout 180;
}
}
以下是日志: