Reduce the maximum web server connections

This commit is contained in:
Bob Mottram 2014-11-27 20:41:23 +00:00
parent 3b16599b6f
commit 4306d08ba4
1 changed files with 2 additions and 0 deletions

View File

@ -3004,6 +3004,8 @@ function install_web_server {
fi
sed -i "s/worker_processes 4;/worker_processes $CPU_CORES;/g" /etc/nginx/nginx.conf
sed -i 's/worker_connections 768;/worker_connections 50;/g' /etc/nginx/nginx.conf
sed -i 's/# server_tokens off;/server_tokens off;/g' /etc/nginx/nginx.conf
# install a script to easily enable and disable nginx virtual hosts
if [ ! -d $INSTALL_DIR ]; then