Created
August 8, 2012 15:32
-
-
Save wdfsinap/3295969 to your computer and use it in GitHub Desktop.
default nginx.conf for LLNMP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www www; | |
worker_processes 1; | |
error_log /usr/local/nginx/logs/nginx_error.log crit; | |
pid /usr/local/nginx/nginx.pid; | |
#Specifies the value for maximum file descriptors that can be opened by this process. | |
worker_rlimit_nofile 1024; | |
events | |
{ | |
use epoll; | |
worker_connections 1024; | |
} | |
http | |
{ | |
include mime.types; | |
default_type application/octet-stream; | |
#charse gb2312; | |
server_names_hash_bucket_size 128; | |
client_header_buffer_size 128k; | |
large_client_header_buffers 4 256k; | |
client_max_body_size 16m; | |
sendfile on; | |
tcp_nopush on; | |
keepalive_timeout 60; | |
tcp_nodelay on; | |
gzip on; | |
gzip_min_length 1k; | |
gzip_buffers 4 16k; | |
gzip_http_version 1.1; | |
gzip_comp_level 9; | |
gzip_types text/plain application/x-javascript text/css application/xml; | |
gzip_vary on; | |
output_buffers 4 32k; | |
postpone_output 1460; | |
#limit_zone crawler $binary_remote_addr 10m; | |
include servers/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment