video stream and secure link

shahzaib shahzaib shahzaib.cb at gmail.com
Mon Jul 2 09:55:35 UTC 2012


you can copy this location & paste beneath with flv instead of mp4

On Mon, Jul 2, 2012 at 2:02 PM, aryut <nginx-forum at nginx.us> wrote:

> hi,
>
> i want to use mp4 module and secure link module together.
>
> this is my conf;
>                         location /videos/ {
>                         secure_link $arg_st,$arg_e;
>                         secure_link_md5 ssss$remote_addr$uri$arg_e;
>                         if ($secure_link = "") {
>                                 return 403;
>                         }
>
>                         if ($secure_link = "0") {
>                                 return 403;
>                         }
>
>                                 mp4;
>
>                 }
> it works with this config but when i change mp4; with
>                                location ~ \.mp4$ {
>                                                 mp4;
>                                         }
> secure link doesn't works. streaming an seeking working well.
>
> i need to add this line because i want to stream flv files too.
>
> wat is the true way ? thanks.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,228161,228161#msg-228161
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120702/c0c20626/attachment.html>


More information about the nginx mailing list