首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
nginx无法下载文件,报404的解决方法
nginx无法下载文件,报404的解决方法
tech
2025-11-09
11
使用nginx做负载均衡,在每个应用服务器都能下载文件,但是在nginx服务器里面无法下载文件,解决方法是修改如下配置:
location /docs/ { proxy_pass http://webservers; #或者是root /home/project/docs/ add_header Content-Disposition: 'attachment;'; }
转载请注明原文地址:https://tech.qufami.com/read-25173.html
最新回复
(
0
)