NGINX http-secure-link 403 !!
shahzaib mushtaq
shahzaib.cb at gmail.com
Wed Aug 3 19:20:45 UTC 2016
Looks like, its working now. Added root directive under server {} section &
link got loaded into the browser though 403 still occurs in terminal when
calling with curl (not much to worry about i guess) .
On Wed, Aug 3, 2016 at 10:17 PM, shahzaib mushtaq <shahzaib.cb at gmail.com>
wrote:
> H,
>
> Can you please help to fix it ? expire= is already fixed but issue still
> persists.
>
> Regards.
> Shahzaib
>
> On Wed, Aug 3, 2016 at 9:30 PM, shahzaib mushtaq <shahzaib.cb at gmail.com>
> wrote:
>
>> Hi,
>>
>> Thanks for response though i already had fixed this mistake, during
>> copy/paste the commands on this forum made a typo. Here you can see i've
>> created date + md5 but still 403 error :
>>
>> http://prntscr.com/c1690d
>>
>> On Wed, Aug 3, 2016 at 9:21 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
>>
>>> Hello!
>>>
>>> On Wed, Aug 03, 2016 at 08:38:36PM +0500, shahzaib mushtaq wrote:
>>>
>>> > Hi,
>>> >
>>> > We've configured nginx --with-http_secure_link_module to secure the mp4
>>> > links. Currently we're testing it with very basic settings. Following
>>> is
>>> > brief explanation of our lab :
>>> >
>>> > A test.mp4 file is located under directory /tunefiles/files/test.mp4 .
>>> Our
>>> > objective is to access this file over secure link such as
>>> >
>>> > http://192.168.1.192/files/test.mp4?md5=XXXXXX&expire=2314444 .
>>> >
>>> > Here is the config of http-secure-link :
>>> >
>>> > http://pastebin.com/N41WQASj
>>> >
>>> > We've constructed the md5 & expire using following commands :
>>> >
>>> > #expiry date is 31st december
>>> > $date -d "2016-12-31 23:59" +%s
>>> > 1470240179
>>> >
>>> > #md5
>>> > $echo -n '1470240179/files/test.mp4 secret' | openssl md5 -binary |
>>> openssl
>>> > base64 | tr +/ -_ | tr -d =
>>> > fY8Iyuqah9coPxTDk-UvVg
>>> >
>>> >
>>> > Once everything is constructed, we loaded the following URL into the
>>> > browser & encountered the error 403:
>>> >
>>> >
>>> http://192.168.1.192/files/test.mp4?md5=fY8Iyuqah9coPxTDk-UvVg&expire=1470240179
>>>
>>> You are using "expire=" in the request, but "$arg_expires" in the
>>> configuration. Note the trailing "s".
>>>
>>> --
>>> Maxim Dounin
>>> http://nginx.org/
>>>
>>> _______________________________________________
>>> 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/20160804/2c2c77d1/attachment.html>
More information about the nginx
mailing list