zoukankan      html  css  js  c++  java
  • Nginx--配置文件

    worker_processes  4;
     error_log  logs/error.log;
    events {
        worker_connections  9000;
        use epoll;
    }
    
    
    http {
        include       mime.types;
        default_type  application/octet-stream;
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for" "$request_time"';
    
        
        server_tokens off;
        client_max_body_size 30m;
         keepalive_timeout  65;
         gzip  on;
         gzip_min_length 1024;
         gzip_buffers 4 128k;
         gzip_http_version 1.0;
         gzip_comp_level 6;
    
         gzip_proxied any;
         gzip_types text/plain  text/javascript application/x-javascript text/css  text/xml image/jpg  application/xml  image/jpeg image/gif image/png;
         gzip_vary on;
         gzip_disable        "Dalvik.";
         sendfile        on;
    
        # set_real_ip_from 100.97.0.0/16;
        real_ip_header X-Forwarded-For;
    
        include vhosts/*.conf;
    
    }
    

      

  • 相关阅读:
    Manjaro中添加gitee的公钥部署
    另类的linux系统
    mac的快捷键flykey应用
    tidb总览
    raft算法
    tidb的tidb
    tidb的tikv
    tidb的pd
    切尔诺贝利事故
    血钻
  • 原文地址:https://www.cnblogs.com/bigberg/p/7654584.html
Copyright © 2011-2022 走看看