/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
server{ listen 80; server_name test.localhost; location / { root /Users/vasil/test; if ($request_filename !~* ^.*?\.(jpg)|(png)|(gif)){ add_header Content-Disposition: "$request_filename"; } } }