Page 1 of 1

Is it ok to edit /etc/nginx/nginx.conf ?

Posted: Sat Mar 02, 2019 8:15 pm
by floown
Hello,

Is it ok to edit the file : /etc/nginx/nginx.conf ?
I ask this question because the file can be updated with a next update from nginx, no?

I must to add these lines:

Code: Select all

proxy_buffer_size   128k;
proxy_buffers   4 256k;
proxy_busy_buffers_size   256k;
I have edit /etc/nginx/nginx.conf at this time, until I have a answer to my newbie question.

Thanks.

Re: Is it ok to edit /etc/nginx/nginx.conf ?

Posted: Sat Mar 02, 2019 10:43 pm
by grayfolk
floown wrote:
Sat Mar 02, 2019 8:15 pm
Is it ok to edit the file : /etc/nginx/nginx.conf ?
I ask this question because the file can be updated with a next update from nginx, no?
No, this file not be updated automatically in future, you can edit it.
Also, you can create separate config file for your own settings in /etc/nginx/conf.d/your-file-name.conf - this file will be included into http{} config section