SV-278380r1172745_rule
V-278380
SRG-APP-000001
NGNX-APP-000010
CAT II
10
Determine the path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
Add or modify the number of "worker_connections" based on the needs of the application.
Note: By default, NGINX limits the number of concurrent connections to 512 per worker process, and the number of worker processes is equal the number of CPUs present. This results in a maximum number of connections equal to "worker_connections" multiplied by the number of "worker_processes". In a proxy configuration, NGINX will use a connection on both the client side and the server side. This results in two connections for each client side connection.
Restart NGINX:
systemctl restart nginx
Determine path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
nginx -c <path to nginx config> -qT | grep worker_connections
worker_connections 512;
Verify "worker_connections" is set in the configuration to an organization-defined number.
If the "worker_connections" is not set to an organization-defined number, this is a finding.
V-278380
False
NGNX-APP-000010
Determine path to NGINX config file(s):
nginx -qT | grep "# configuration"
# configuration file /etc/nginx/nginx.conf:
Note: The default NGINX configuration is "/etc/nginx/nginx.conf", though various files may also be included.
nginx -c <path to nginx config> -qT | grep worker_connections
worker_connections 512;
Verify "worker_connections" is set in the configuration to an organization-defined number.
If the "worker_connections" is not set to an organization-defined number, this is a finding.
M
5720