zoukankan      html  css  js  c++  java
  • nginx.conf

     1 user                                                    daemon;
     2 worker_processes                                        auto;
     3 error_log                                               logs/error.log;
     4 pid                                                     ../nginx.pid;
     5 worker_rlimit_nofile                                    65535;
     6 # Load dynamic modules. See /usr/share/nginx/README.dynamic.
     7 #include /usr/share/nginx/modules/*.conf;
     8 events {
     9     use                                                 epoll;
    10     worker_connections                                  10240;
    11 }
    12 
    13 
    14 http {
    15     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    16                       '$status $body_bytes_sent "$http_referer" '
    17                       '"$http_user_agent" "$http_x_forwarded_for" "$upstream_cache_status" "$upstream_addr" "$sent_http_content_range"'
    18 
    19     access_log                                          logs/access.log  main;
    20     charset                                             utf-8;
    21     sendfile                                            on;
    22     tcp_nopush                                          on;
    23     tcp_nodelay                                         on;
    24     keepalive_timeout                                   65;
    25     keepalive_requests                                  2048;
    26     types_hash_max_size                                 2048;
    27     client_max_body_size                                100M;
    28     include                                             mime.types;
    29     default_type                                        application/octet-stream;
    30 
    31     server_tokens                                       off;
    32     gzip                                                on;
    33     gzip_min_length                                     1k;
    34     gzip_buffers                                        4 32k;
    35     gzip_http_version                                   1.1;
    36     gzip_comp_level                                     2;
    37     gzip_types                                          text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
    38     gzip_vary                                           on;
    39     gzip_disable                                        "MSIE [1-6].";
    40 
    41     include                                             ../vhost/*.conf;
    42 }
  • 相关阅读:
    android git问题File not found: git.exe
    asp.net 连接数据库的问题总结
    asp.net记账本
    asp.net对数据库增删改操作
    asp.net 连接数据库操作
    第九、十周周记
    作业四-兴趣问题清单
    价值观作业
    第七周周记
    第三次作业问卷调查
  • 原文地址:https://www.cnblogs.com/weibiao/p/6273790.html
Copyright © 2011-2022 走看看