注意:单击test1后将下载110KB的图片。
test1托管在托管文件(dl5.nat.li)的同一服务器上
test2托管在外部服务器上,报告"消失"
为什么test1有效,而test2无效?
它们共享完全相同的index.php:
<?php
$secret = "mysecret";
$uri_prefix = "/dl/";
$f = "/4615c7b8822f5a1187246e83ff3023698c70077a/badresults-ziggo.png";
$t = time();
$t_hex = sprintf("%08x", $t);
$m = md5($secret.$f.$t_hex);
$url = 'http://dl5.nat.li'.$uri_prefix.$m.'/'.$t_hex.$f;
header('Content-Type: application/force-download');
header( 'Location: '.$url ) ;
?>
文件服务器上的Secdownload配置:
secdownload.secret = "mysecret"
secdownload.document-root = "/home/dlfolder/"
secdownload.uri-prefix = "/dl/"
secdownload.timeout = 30
我在这里不知所措。
问题在重新启动lighttpd后消失了,我不知道为什么或发生了什么…奇怪。