NGINX http-secure-link 403 !!

shahzaib mushtaq shahzaib.cb at
Wed Aug 3 15:38:36 UTC 2016


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 .

Here is the config of http-secure-link :

We've constructed the md5 & expire using following commands :

#expiry date is 31st december
$date -d "2016-12-31 23:59" +%s

$echo -n '1470240179/files/test.mp4 secret' | openssl md5 -binary | openssl
base64 | tr +/ -_ | tr -d =

Once everything is constructed, we loaded the following URL into the
browser & encountered the error 403:

This is what we got in error-log :

2016/08/03 19:58:27 [error] 1227#1227: *1 open()
"/etc/nginx/html/favicon.ico" failed (2: No such file or directory),
client:, server: _, request: "GET /favicon.ico HTTP/1.1",
host: "", referrer: "


We're unable to get rid of this 403 so far & need help on where we're doing
wrong ?

Thanks for help in advance !!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list