MrFastDie icon

nginx.conf

MrFastDie | PRO | 01/06/17 02:14:45 PM UTC | 0 ⭐ | 6659 👁️ | Never ⏰ | []
Nginx |

1.35 KB

|

None

|

0 👍

/

0 👎

events {
    worker_connections  65500;
    use epoll;
    multi_accept on;
}
 
http {
    keepalive_timeout 65;
    keepalive_requests 100000;
    sendfile         on;
    tcp_nopush       on;
    tcp_nodelay      on;
 
    client_body_buffer_size    128k;
    client_max_body_size       10m;
    client_header_buffer_size    1k;
    large_client_header_buffers  4 4k;
    output_buffers   1 32k;
    postpone_output  1460;
 
    client_header_timeout  3m;
    client_body_timeout    3m;
    send_timeout           3m;
 
    open_file_cache max=1000 inactive=20s;
    open_file_cache_valid 30s;
    open_file_cache_min_uses 5;
    open_file_cache_errors off;
 
    gzip on;
    gzip_min_length  1000;
    gzip_buffers     4 4k;
    gzip_types       text/html application/x-javascript text/css application/javascript text/javascript text/plain text/xml application/json application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype application/x-font-ttf application/xml font/eot font/opentype font/otf image/svg+xml image/vnd.microsoft.icon;
    gzip_disable "MSIE [1-6]\.";
 
    aio on;
    directio       8m;
 
    access_log off;
    error_log off;
 
    server {
        listen 80;
        server_name _;
 
        index index.html;
 
        location /files {
            root /usr/share/nginx;
        }
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎