Return to Snippet

Revision: 10366
at December 22, 2008 12:03 by vasilije


Initial Code
server{
        listen 80;
        server_name test.localhost;
        location / {
               root /Users/vasil/test;
               if ($request_filename !~* ^.*?\.(jpg)|(png)|(gif)){
                              add_header Content-Disposition: "$request_filename";
                          }
                }
        }

Initial URL

                                

Initial Description

                                

Initial Title
Nginx force download for non image static files

Initial Tags

                                

Initial Language
Other