nginx-0.7.18

Thomas iamkenzo at gmail.com
Tue Nov 11 21:09:14 MSK 2008


I tried to play with

but when I launch nginx I get the following error message:
--
[emerg] 27797#0: unknown directive "secure_link_secret" in
/usr/local/nginx/conf/website.conf
--

Here is my configuration file excerpt:
--
  location /secret/ {
    secure_link_secret some_secret;

    if ($secure_link = "") {
      return 403;
    }

    rewrite ^ /$secure_link break;
    proxy_pass http://website/$secure_link;
  }
--

Here is my configure:
--
./configure --with-http_ssl_module --with-http_gzip_static_module
--with-http_secure_link_module --with-poll_module
--with-pcre=../pcre-7.8 --with-http_flv_module
--sbin-path=/usr/sbin/nginx --prefix=/usr/local/nginx
--add-module=../nginx_mp4_streaming_lite --with-cc-opt='-O3'
--

Moreover I don't understand the following:
--
2) hash is md5(link, secret),
  the secret is set by secure_link_secret directive;
--
What is this secret thing? md5 cannot be decoded, so does this mean
that I have to hard code all my secret links inside Nginx'
configuration file?

On Mon, Nov 10, 2008 at 6:07 PM, Igor Sysoev <is at rambler-co.ru> wrote:
> On Mon, Nov 10, 2008 at 03:59:31PM +0100, Thomas wrote:
>
>> >    *) Feature: the ngx_http_secure_link_module.
>> >
>> Is it possible to proxy the request?
>>
>> I'd like to do something like this:
>> --
>>   location /dl/
>>        secure_link_secret  lhm;
>>        if ($secure_link = "") {
>>            return 403;
>>        }
>>     }
>>
>>     proxy_pass http://192.168.0.10:3000;
>>
>>     rewrite  ^   $secure_link  break;
>> --
>
> Yes, you may use something like this:
>
>     proxy_pass http://192.168.0.10:3000/$secure_link;
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>





More information about the nginx mailing list