user nagios nagios;
worker_processes 4;
worker_cpu_affinity 00000001 00000010 00000100 00001000;
error_log /export/servers/nginx/logs/nginx_error.log notice;
pid /export/servers/nginx/logs/nginx.pid;
worker_rlimit_nofile 65535;
events
{
use epoll;
worker_connections 65535;
}
http
{
include mime.types;
default_type application/octet-stream;
server_tokens off;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$
gzip_ratio"';
charset utf-8;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 500m;
sendfile on;
tcp_nopush on;
keepalive_timeout 0;
tcp_nodelay on;
client_body_buffer_size 1024k;
fastcgi_intercept_errors on;
proxy_connect_timeout 90;
proxy_read_timeout 180;
proxy_send_timeout 180;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
server_name_in_redirect off;
proxy_hide_header X-Powered-By;
fastcgi_connect_timeout 320m;
fastcgi_send_timeout 320m;
fastcgi_read_timeout 320m;
gzip on;
gzip_min_length 100;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 9;
gzip_types text/plain application/x-
javascript text/css application/xml;
gzip_vary on;
error_page 400 401 402 403 404 = /40x.html;
# error_page 500 501 502 503 504 = /50x.html;
log_format nagios_logs '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /export/servers/nginx/logs/access_nagios.log nagios_logs;
fastcgi_buffer_size 512k;
fastcgi_buffers 24 512k;
fastcgi_busy_buffers_size 640k;
fastcgi_temp_file_write_size 640k;
include domains/*;
###########status#########
server
{
listen 80;
server_name status.nginx.com;
location / {
stub_status on;
access_log off;
}
}
}