# Nginx secure download

**URL:** <https://www.ruby-forum.com/t/nginx-secure-download/188737>\
**Category:** NGINX\
**Created:** [May 17, 2010, 4:02pm UTC](https://www.ruby-forum.com/t/nginx-secure-download/188737 "2010-05-17T16:02:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gromminger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a4c791/32.png) [@gromminger](https://www.ruby-forum.com/u/gromminger)\
**Post date:** [May 17, 2010, 4:02pm UTC](https://www.ruby-forum.com/t/nginx-secure-download/188737/1 "2010-05-17T16:02:08Z")

</div>

Hello,

i am trying to setup nginx with the secure download module. but  
unfortunately i cant enable it.

```
    location /media/aveo/videos {
        secure_download on;
        secure_download_secret xxxxxxxx;
        secure_download_path_mode file;
    }

```

nginx -t says

[emerg]: unknown directive “secure\_download” in /etc/nginx/nginx.conf:74

i cant even find a configure parameter how to enable this? what did i  
miss ?

and, which variable can i use for the timestamp (hex format) in the  
secure\_download\_secret ?

Thanks

Juergen

---

<div class="post-metadata">

**Author:** ![gromminger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/a4c791/32.png) [@gromminger](https://www.ruby-forum.com/u/gromminger)\
**Post date:** [May 17, 2010, 4:09pm UTC](https://www.ruby-forum.com/t/nginx-secure-download/188737/2 "2010-05-17T16:09:10Z")

</div>

nevermind… found the source 😉
