zacker330
1/16/2018 - 2:10 AM

nginx 静态文件服务器

        location /device/images/ {
                alias /usr/local/openresty/nginx/html/images/;
                autoindex off;
                try_files $uri =404;
                access_log off;
                expires 30d;
                ## No need to bleed constant updates. Send the all shebang in one
                ## fell swoop.
                tcp_nodelay off;
                ## Set the OS file cache.
                open_file_cache max=3000 inactive=120s;
                open_file_cache_valid 45s;
                open_file_cache_min_uses 2;
                open_file_cache_errors off;

        }