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

  • 相关阅读:
    const char* && string && String^ 类型转换
    vs2010 vc++ 统一修改所有工程的目录配置
    OSG开发概览
    osg渲染数据高程文件
    postgis数据库文件shapefile导入 dbf file (.dbf) can not be opened.shapefile import failed.
    Point ZM 转换为Point 类型
    Extjs关于alert显示不出—异步问题
    js执行顺序<转>
    HTML中IFrame父窗口与子窗口相互操作
    SpringMVC学习系列(6) 之 数据验证
  • 原文地址:https://www.cnblogs.com/chunyin/p/2570109.html
Copyright © 2011-2022 走看看