添加以下代码至配置文件
location / {
if ($request_filename ~* ^.*?.(txt)$){
add_header Content-Disposition attachment;
}
}
添加以下代码至配置文件
location / {
if ($request_filename ~* ^.*?.(txt)$){
add_header Content-Disposition attachment;
}
}