net::ERR_INCOMPLETE_CHUNKED_ENCODING nginx

后端 未结 8 1250
无人共我
无人共我 2020-12-15 17:38

I have 2 RoR web applications hosted on 2 different servers. For one particular page, the request is served from the second application. For rest of the pages, the request i

8条回答
  •  星月不相逢
    2020-12-15 18:20

    proxy_set_header Connection keep-alive;


    Full config

    server {
            listen      0000; #//port give by your need
            server_name  aa.com;
            proxy_buffers 16 4k;
            proxy_buffer_size 2k;
    
    
            #charset koi8-r;
    
            #access_log  logs/host.access.log  main;
            location ~ ^/hello/{
                proxy_buffering off;
                proxy_pass http://127.0.0.1:1111; #//port give by your need
                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 Connection keep-alive; 
            }
    

提交回复
热议问题