nginx: [emerg]: unknown "secure_download" variable

Robert La Ferla robert.laferla at
Tue Dec 7 19:02:01 MSK 2010

I was following the example in 
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


- --
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.

More information about the nginx mailing list