nginx配置文件添加了
location /protected {
internal;
alias /resource/static_state;
}
后台访问 down.php
<?php
header("Content-Type:application/octet-stream;charset=utf-8");
header('Content-Disposition: attachment; filename=test.zip');
header('X-Accel-Redirect: /protected/program.zip');
?>
每次访问down.php 都是下载的2k 是404的html文件 求各位大大帮忙看看
|
|