我正在使用nginx和节点服务器来提供更新请求.当我请求更新大数据时,我得到网关超时.我从nginx错误日志中看到了这个错误:
2016/04/07 00:46:04 [错误] 28599#0:*1上游过早关闭连接,同时从上游读取响应头,客户端:10.0.2.77,服务器:gis.oneconcern.com,请求:"GET/update_mbtiles/atlas19891018000415 HTTP/1.1",上游:" http://127.0.0.1:7777/update_mbtiles/atlas19891018000415 ",主持人:"gis.oneconcern.com"
我用谷歌搜索错误并尽我所能,但我仍然得到错误.
我的nginx conf有这些代理设置:
##
# Proxy settings
##
proxy_connect_timeout 1000;
proxy_send_timeout 1000;
proxy_read_timeout 1000;
send_timeout 1000;
Run Code Online (Sandbox Code Playgroud)
这就是我的服务器的配置方式
server {
listen 80;
server_name gis.oneconcern.com;
access_log /home/ubuntu/Tilelive-Server/logs/nginx_access.log;
error_log /home/ubuntu/Tilelive-Server/logs/nginx_error.log;
large_client_header_buffers 8 32k;
location / {
proxy_pass http://127.0.0.1:7777;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $http_host;
proxy_cache_bypass $http_upgrade;
}
location /faults {
proxy_pass http://127.0.0.1:8888;
proxy_http_version 1.1;
proxy_buffers 8 64k;
proxy_buffer_size 128k;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host; …Run Code Online (Sandbox Code Playgroud)