범용 Nginx 최적화 설정

#   nginx       
use Nginx;
# cpu     
worder_processes 16;
#     cpu
worder_cpu_affinity auto; 

#           
error_log /var/log/nginx/error.log warn;
# pid    
pid /var/run/nginx.pid;
#            1       
worder_rlimit_nofile 35535;

events{
	use epoll;
	#      
	worder_connections 10240;
}

http{
	include /etc/nginx/mime.types;
	#    Content-Type
	default application/octet-stream;
	#   
	charset utf-8;
	#       
	log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" "$request_uri"';
    #          
    access_log  /var/log/nginx/access.log  main;
    #     
    # access_log  off;
    
	#Core modlue
	#       sendfile         
	 sendfile        on;
	 #                  
    #tcp_nopush     on;
    #                   
    #tcp_nodeny     on;
    keepalive_timeout  65;

	#Gzip module
	#   gzip  
    gzip  on;
    # ie6        
    gzip_disable "MSIE [1-6]\.";  
    gzip_http_version 1.1; 

	#Virtal Server
    include /etc/nginx/conf.d/*.conf;
}

좋은 웹페이지 즐겨찾기