Skip to content

Instantly share code, notes, and snippets.

@duduribeiro
duduribeiro / nginx.conf
Created March 12, 2014 15:13
nginx.conf
# User and group that workers will use.
user nginx nginx;
# Number of NGINX workers. Usually it's set, at maximum, 1 worker per CPU core.
# If the server has 2+ CPU cores but it still does not receive many requests,
# it's a good idea to keep the value to 1 so it will avoid creating idle processes.
worker_processes 2;
# NGINX's master process id.
pid /var/run/nginx.pid;