Nginx 使用 Nginx 搭建文件下载服务器,但点击下载,响应时间随文件大小变大而增加

sujielei · August 22, 2017 · Last by robertyu replied at August 22, 2017 · 7377 hits

设置如下:

server {
        listen   8110;
        server_name  localhost;

        access_log  /root/log;

        root    /pathto/dowloads;

        autoindex       on;
        autoindex_exact_size    off;
        autoindex_localtime     on;
}

请问有什么其他设置可以改进体验吗?

比如: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/ 这个网站,也是用 nginx 搭建的,点击要下载的文件,马上就跳出下载框了。 然而我的,几十兆的文件都要等半天才会跳出下载框。

求教。

You need to Sign in before reply, if you don't have an account, please Sign up first.