Php 当请求来自不同服务器时,mod_secdownload不工作

Php 当请求来自不同服务器时,mod_secdownload不工作,php,lighttpd,Php,Lighttpd,注意:点击test1后,将下载110KB的图片 托管在托管文件的同一台服务器上(dl5.nat.li) 托管@external server,报告“消失” 为什么test1工作,而test2不工作 它们共享完全相同的index.php: <?php $secret = "mysecret"; $uri_prefix = "/dl/"; $f = "/4615c7b8822f5a1187246e83ff3023698c70077a/badresults-ziggo.p

注意:点击test1后,将下载110KB的图片

托管在托管文件的同一台服务器上(dl5.nat.li)

托管@external server,报告“消失”

为什么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 ) ;
?>

我在这里不知所措。

重新启动lighttpd后,问题消失了,我不知道为什么或者发生了什么。。。奇怪。

重新启动lighttpd后问题消失了,我不知道为什么或者发生了什么。。。奇怪

  secdownload.secret          = "mysecret"
  secdownload.document-root   = "/home/dlfolder/"
  secdownload.uri-prefix      = "/dl/"
  secdownload.timeout         = 30