# ### NGINX main configuration # user nginx; worker_processes 1; pid /var/run/nginx.pid; error_log /var/log/nginx/error.log warn; # include dynamically linked modules include /etc/nginx/modules/*.conf; events { worker_connections 512; multi_accept off; use epoll; } http { default_type application/octet-stream; charset utf-8; include /etc/nginx/mime.types; # set default index and webroot index index.php index.html; root /usr/share/nginx/html; # logging options (off by default for performance) log_format main '$remote_addr - $remote_user [$time_local] $request ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" ' '"$host" server="$server_name" ' 'reqtime="$request_time" ' 'uaddr="$upstream_addr" ustat="$upstream_status" ' 'utime="$upstream_response_time" ulen="$upstream_response_length" ' 'cache="$upstream_cache_status"'; #access_log /var/log/nginx/access.log main; access_log off; # server configuration options server_tokens off; real_ip_recursive on; resolver 1.1.1.1; include /etc/nginx/ssl-config/*.conf; include /etc/nginx/config/*.conf; # include enabled server blocks from sites/*.conf include /etc/nginx/sites/*.conf; }