简体   繁体   English

Nginx Client_max_body_size

[英]Nginx Client_max_body_size

I'm trying to edit the /etc/nginx/nginx.conf , and according a tutorial I'm following, there should be a client_max_body_size under http {} , but it's not there on mine. 我正在尝试编辑/etc/nginx/nginx.conf ,根据我正在遵循的教程, http {}下应该有一个client_max_body_size ,但我的目录上不存在。 Could it be I'm in the wrong file? 可能是我输入了错误的文件吗?

Solved it. 解决了。

You have to add this code if its not there: Client_max_body_size size ; 如果不存在,则必须添加此代码:Client_max_body_size size ;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM