Request URL: http://localhost:8066/black/list?search=&page=1&limit=10
Request Method: GET
Status Code: 404
Remote Address: 127.0.0.1:8066
Referrer Policy: no-referrer-when-downgrade
Request URL: http://localhost:81/black/list?search=&page=1&limit=10
Request Method: GET
Status Code: 200
Remote Address: [::1]:81
Referrer Policy: no-referrer-when-downgrade
upstream serverlist {
server 127.0.0.1:81 weight=1;
server 127.0.0.1:83 weight=2;
server 127.0.0.1:85 weight=3;
}
#gzip on;
server {
listen 8066;
server_name 127.0.0.1;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
#root \blacklist;
#index \black-list.html;
proxy_pass http://serverlist;
proxy_redirect default;
proxy_connect_timeout 1s;
proxy_read_timeout 5s;
proxy_send_timeout 2s;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
add_header 'Access-Control-Allow-Headers' 'Content-Type';
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET';
}
location ~ .*\.(html|htm|gif|jpg|jpeg|bmp|png|ico|txt|js|css|woff)$ {
proxy_pass http://serverlist;
}
1
leeyuzhe 2019-06-06 10:38:02 +08:00 via Android
看下 Nginx 日志
|
2
LeeSeoung 2019-06-06 10:43:20 +08:00
nginx 只留 location proxy_pass,upstream 里只留 81 端口 一步一步加条件看加了哪个挂了。。
|
3
571726193 OP @leeyuzhe log 里就这个 2019/06/06 09:31:54 [notice] 19756#4324: signal process started
|
5
imycc 2019-06-06 13:41:09 +08:00 via iPhone
nginx 的 access log 看一下 upstream 分配到哪
404 的时候应用有没有收到请求 排查下。再不行就用 tcpflow 监听下这几个端口进来的请求是啥合适的。 |
6
kevinWHX 2019-06-06 13:42:06 +08:00
看一下 access.log
|