zoukankan      html  css  js  c++  java
  • nginx 配置

    user user;
    worker_processes  1;

    #error_log  logs/error.log;
    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;

    #pid        logs/nginx.pid;


    events {
        worker_connections  1024;
    }


    http {
        include       mime.types;
        default_type  application/octet-stream;

        server_names_hash_bucket_size    128;
        client_max_body_size             16m;

        client_header_buffer_size        512k;
        large_client_header_buffers      4 512k;

        #zip compress setting
        gzip_static                      on;
        gzip_min_length                  1k;
        gzip_http_version                1.1;
        gzip_buffers                     4 8k;
        gzip_comp_level                  2;  
        gzip_types                       text/plain application/x-javascript text/css application/xml;
        gzip_vary                        on;
        gzip_disable                     "MSIE [1-6]\.";
        #limit_zone  crawler  $binary_remote_addr  10m;

        fastcgi_connect_timeout   300;
        fastcgi_read_timeout      300;
        fastcgi_send_timeout      300;
        fastcgi_intercept_errors   on;

        fastcgi_buffer_size              512k;
        fastcgi_buffers                  4 512k;
        fastcgi_busy_buffers_size        512k;
        fastcgi_temp_file_write_size     512k;
        fastcgi_temp_path                /dev/shm;

        #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  logs/access.log  main;
        log_format  new_log  '$remote_addr - $remote_user [$time_local] $request '
                          '"$status" $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';

        sendfile        on;
        #tcp_nopush     on;

        #keepalive_timeout  0;
        keepalive_timeout  65;
    }

  • 相关阅读:
    Python 模块 itertools
    Python 字符串的encode与decode
    python 模块 hashlib(提供多个不同的加密算法)
    暴力尝试安卓gesture.key
    hdu 1300 Pearls(DP)
    hdu 1232 畅通工程(并查集)
    hdu 1856 More is better(并查集)
    hdu 1198 Farm Irrigation(并查集)
    hdu 3635 Dragon Balls(并查集)
    hdu 3038 How Many Answers Are Wrong(并查集)
  • 原文地址:https://www.cnblogs.com/chunyin/p/2570109.html
Copyright © 2011-2022 走看看