本文主要是介绍用nginx最代理请求总是 required is not finished yet,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
微信扫一扫关注个公众号。谢谢各位
用以下配置就可以解决访问慢的
location /m/{
proxy_pass http://*;
proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 1;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
proxy_max_temp_file_size 128m;
add_header Cache-Control no-store;
}
这篇关于用nginx最代理请求总是 required is not finished yet的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!