# NGINX # FILE: /usr/local/etc/nginx/nginx.conf #---------------------------------------------------------------------- # http://nginx.org/en/docs/ngx_core_module.html #---------------------------------------------------------------------- user prm staff; worker_processes 2; pid /usr/local/var/run/nginx/nginx.pid; #---------------------------------------------------------------------- # http://nginx.org/en/docs/ngx_core_module.html#events #---------------------------------------------------------------------- events { worker_connections 1024; accept_mutex off; } #---------------------------------------------------------------------- # http://nginx.org/en/docs/http/ngx_http_core_module.html #---------------------------------------------------------------------- http { include mime.types; access_log /usr/local/var/log/nginx/access.log; error_log /usr/local/var/log/nginx/error.log warn; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; charset utf-8; # compression gzip on; gzip_buffers 16 8k; gzip_comp_level 2; gzip_disable "MSIE [1-6].(?!.*SV1)"; gzip_http_version 1.0; gzip_min_length 10240; gzip_proxied any; gzip_static on; gzip_types text/plain text/css application/x-javascript text/comma-separated-values text/xml application/xml application/xml+rss application/atom+xml text/javascript; gzip_vary on; # general options client_body_buffer_size 512k; client_body_timeout 15; client_header_timeout 15; client_max_body_size 64m; ignore_invalid_headers on; keepalive_timeout 2 2; keepalive_requests 200; merge_slashes on; recursive_error_pages on; reset_timedout_connection on; sendfile on; send_timeout 15; server_names_hash_bucket_size 128; server_name_in_redirect off; server_tokens off; tcp_nodelay off; tcp_nopush on; types_hash_max_size 2048; underscores_in_headers on; # detect https map $scheme $fastcgi_https { default ""; https on; } # PHP-FPM upstream phpfpm { server unix:/usr/local/var/run/php-fpm.sock; #server 127.0.0.1:9000; } # include active sites include /usr/local/etc/nginx/sites-enabled/*; }