Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx: [emerg] "XXX" directive is duplicate in /etc/nginx/conf.d/XXX.conf:7

Tags:

nginx

when doing

nginx -t

error message :

nginx: [emerg] "client_max_body_size" directive is duplicate in /etc/nginx/conf.d/proxy-settings.conf:7

like image 332
Durga Prasad Avatar asked Oct 17 '22 14:10

Durga Prasad


1 Answers

Remove the second copy of the directive from file /etc/nginx/conf.d/proxy-settings.conf - at line 7.

like image 67
IVO GELOV Avatar answered Oct 21 '22 09:10

IVO GELOV