nginx 搭建下载服务器
阿里云国内75折 回扣 微信号:monov8 |
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6 |
配置如下
server {
listen 8081 default_server;
charset utf8;
location / {
}
location /down {
alias /usr/local/nginxDownServer; # 只能有一个root 其他使用 alias
autoindex on; #开启索引功能
autoindex_exact_size off; #关闭计算文件确切大小单位bytes只显示大概大小单位kb、mb、gb
autoindex_localtime on; #显示本机时间而非 GMT 时间
}
}