Migrating from Lighttpd : mod_secdownload show-stopper ?

Epstein nginx-forum at nginx.us
Thu Jun 9 19:54:46 MSD 2011


Hi,
I want to migrate from Lighty too. Works so far but i need to use that
"secdownload" functionality of Lighty.
I tried ntr0pies solution, but can't get it to work because of that
time-value ... i think. I get a 404 everytime.

My Script pulls the url like this:
[code]
public static function secdownload_url($video_id, $ext, $key)
	{
		$file	= ($ext == 'mobile') ? '/mobile/'.$video_id.'.mp4' :
'/'.$ext.'/'.$video_id.'.'.$ext;
                $hex    = sprintf("%08x", time());
       
        return md5($key.$file.$hex).'/'.$hex.$file;   	
	}
[/code]
Maybe someone can help me with that. Thank you very much.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,173863,205350#msg-205350




More information about the nginx mailing list