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;
    }

  • 相关阅读:
    快速编辑里指定默认值
    Odoo domain 中的 like, ilike, =like, =ilike 举例说明【转】
    odoo报表条码无法显示解决[转]
    ubuntu 安装 wkhtmltopdf 的方法
    解决Odoo日期(时间)无效的问题 [转]
    ShareSDK演示
    黑客帝国数字矩阵特效做法
    lua中实现倒计时
    Lua中用Split函数分割字符串
    lua封装的位运算
  • 原文地址:https://www.cnblogs.com/chunyin/p/2570109.html
Copyright © 2011-2022 走看看