2010-06-20 22:26:01 +00:00
|
|
|
#######################################################################
|
|
|
|
#
|
|
|
|
# This is the main Nginx configuration file.
|
|
|
|
#
|
|
|
|
# More information about the configuration options is available on
|
|
|
|
# * the English wiki - http://wiki.nginx.org/Main
|
|
|
|
# * the Russian documentation - http://sysoev.ru/nginx/
|
|
|
|
#
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Main Module - directives that cover basic functionality
|
|
|
|
#
|
|
|
|
# http://wiki.nginx.org/NginxHttpMainModule
|
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
user nginx;
|
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
#error_log /var/log/nginx/error.log notice;
|
|
|
|
#error_log /var/log/nginx/error.log info;
|
|
|
|
|
2012-03-04 20:18:38 +00:00
|
|
|
pid /run/nginx.pid;
|
2010-06-20 22:26:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Events Module
|
|
|
|
#
|
|
|
|
# http://wiki.nginx.org/NginxHttpEventsModule
|
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# HTTP Core Module
|
|
|
|
#
|
|
|
|
# http://wiki.nginx.org/NginxHttpCoreModule
|
|
|
|
#
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
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"';
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
#tcp_nopush on;
|
|
|
|
|
|
|
|
#keepalive_timeout 0;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
|
|
|
#gzip on;
|
|
|
|
|
|
|
|
# Load config files from the /etc/nginx/conf.d directory
|
2010-12-13 06:12:10 +00:00
|
|
|
# The default server is in conf.d/default.conf
|
2010-06-20 22:26:01 +00:00
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
|
|
|
|
}
|