Where can I change keep_alive value and survive updates?

anti-ts

Verified User
Joined
Jan 25, 2014
Messages
42
Hi..
I'm interested to change keep_alive default value, but make sure it will survive future updates.

Adding keep_alive inside /etc/nginx/nginx-includes.conf is not an option since nginx cannot start on duplicate keep_alive in it's configuration.

Thank you.
 
I'm assuming you're referring to keepalive_timeout.
For standalone nginx custom settings, type:
Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/nginx/conf
cp -p configure/nginx/conf/nginx-defaults.conf custom/nginx/conf/nginx-defaults.conf
And then edit the custom/nginx/conf/nginx-defaults.conf file as desired, followed by:
Code:
./build rewrite_confs
which should use your custom changes.

Related:
https://help.directadmin.com/item.php?id=351

John
 
Back
Top