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 }
  • 相关阅读:
    FZU 2150 Fire Game
    POJ 3414 Pots
    POJ 3087 Shuffle'm Up
    POJ 3126 Prime Path
    POJ 1426 Find The Multiple
    POJ 3278 Catch That Cow
    字符数组
    HDU 1238 Substing
    欧几里德和扩展欧几里德详解 以及例题CodeForces 7C
    Codeforces 591B Rebranding
  • 原文地址:https://www.cnblogs.com/weibiao/p/6273790.html
Copyright © 2011-2022 走看看