Welcome! Log In Create A New Profile

Advanced

Re[2]: nginx: [emerg]: unknown "secure_download" variable

December 07, 2010 02:08PM
Try to use standart HttpSecureLinkModule http://wiki.nginx.org/HttpSecureLinkModule, if you don't want change source code for HttpSecureDownload
module.

Tue, 07 Dec 2010 11:27:01 -0500 письмо от Robert La Ferla <robert.laferla@o-ms.com>:

> Sorry I didn't include those but they ARE in the file. Here's a
> bigger
> snippet of our config:
>
> # HTTPS server
> #
> server {
> listen ouripaddressandport
> server_name ourserver
>
>
> sendfile on;
>
> ## TCP options
> tcp_nopush on;
> tcp_nodelay on;
>
>
> access_log logs/https.access.log main;
>
> ssl on;
> ssl_certificate ourcert
> ssl_certificate_key ourkey
>
> ssl_session_timeout 5m;
>
> ssl_protocols SSLv2 SSLv3 TLSv1;
> ssl_ciphers
> ALL:!ADH:!EXPORT56:RC4+RSA:!HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
> ssl_prefer_server_ciphers on;
>
> location / {
> root html;
> index index.html index.htm;
> }
>
> location /secure {
> secure_download on;
> secure_download_secret oursecret;
> secure_download_path_mode file;
> secure_download_fail_location /error.html;
>
>
> if ($secure_download = "-1") {
> rewrite /expired.html break;
> }
> if ($secure_download = "-2") {
> rewrite /bad_hash.html break;
> }
> if ($secure_download = "-3") {
> return 500;
> }
>
>
> }
>
>
> On 12/7/2010 11:13 AM, Ivan wrote:
> > 1) secure_download on;
> > secure_download_secret IAmSalt$remote_addr;
> > secure_download_path_mode file;
> > ?
> >
> > 2)
> > http://wiki.nginx.org/3rdPartyModules
> >
> > /configure --add-module=/path/to/module1/source \
> > --add-module=/path/to/module2/source
> > ?
> >
> >
> >
> > Tue, 07 Dec 2010 11:02:01 -0500 письмо от Robert La
> Ferla<robert.laferla@o-ms.com>:
> >
> >> I was following the example in
> http://wiki.nginx.org/HttpSecureDownload
> >> but when I added this:
> >>
> >> if ($secure_download = "-1") {
> >> rewrite /expired.html break;
> >> }
> >> if ($secure_download = "-2") {
> >> rewrite /bad_hash.html break;
> >> }
> >> if ($secure_download = "-3") {
> >> return 500;
> >> }
> >>
> >> nginx complains when starting:
> >>
> >> nginx: [emerg]: unknown "secure_download" variable
> >>
> >>
> >> Ideas?
> >>
> >> --
> >> - --
> >> Robert La Ferla
> >> VP Engineering
> >> OMS SafeHarbor
> >>
> >> This message (and any attachments) contains confidential information
> and is
> >> protected by law. If you are not the intended recipient, you should
> delete
> >> this message and are hereby notified that any disclosure, copying,
> >> distribution, or the taking of any action based on this message, is
> strictly
> >> prohibited.
> >>
> >>
> >> _______________________________________________
> >> nginx mailing list
> >> nginx@nginx.org
> >> http://nginx.org/mailman/listinfo/nginx
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
>
> --
> - --
> Robert La Ferla
> VP Engineering
> OMS SafeHarbor
>
> This message (and any attachments) contains confidential information and is
> protected by law. If you are not the intended recipient, you should delete
> this message and are hereby notified that any disclosure, copying,
> distribution, or the taking of any action based on this message, is strictly
> prohibited.
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx: [emerg]: unknown "secure_download" variable

Robert La Ferla December 07, 2010 11:06AM

Re: nginx: [emerg]: unknown "secure_download" variable

Bdfy December 07, 2010 11:18AM

Re: nginx: [emerg]: unknown "secure_download" variable

Robert La Ferla December 07, 2010 11:30AM

Re[2]: nginx: [emerg]: unknown "secure_download" variable

Bdfy December 07, 2010 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready