¶ https server
server { |
¶ alias / root
alias
类似于proxy_pass
,会自动把跟location
match的部分从URI中删掉。而root
仍然会保留location里的部分。
文档:http://nginx.org/en/docs/http/ngx_http_core_module.html#alias
参考:
https://stackoverflow.com/questions/28130841/removing-start-of-path-from-nginx-proxy-pass
Remove path prefix during proxy_pass
¶ 存在的问题
¶ client_max_body_size
文档:https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
stream块好像也会检查body
size,但是client_max_body_size
只支持http块,不支持stream块。