You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
Setting nginx configuration "client_max_body_size" results in error #456
I have to increase the "client_max_body_size" of nginx, so i added a "nginx-http.conf" to my root dir with one line:
client_max_body_size 200m;
But this prevents nginx from starting, with the following message:
"nginx: [emerg] "client_max_body_size" directive is duplicate in /etc/nginx/conf.d/nginx-http.conf:1
The default value for client_max_body_size is 1m, so yeah it will break. One option is to add client_max_body_size 32m; to user-provided nginx-http.conf if it doesn't have it.
Activity
tmatsuo commentedon Jul 25, 2018
@FaHuSchmidt
I'm ok moving it to the default "nginx-http.conf". @chingor13 WDYT? In the meantime, you can have the whole nginx.conf.
chingor13 commentedon Jul 25, 2018
It's possible it might break users that are already providing their own
nginx-http.conffile without that entry?tmatsuo commentedon Jul 25, 2018
The default value for client_max_body_size is
1m, so yeah it will break. One option is to addclient_max_body_size 32m;to user-providednginx-http.confif it doesn't have it.