Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How to force mp4 downloads

$
0
0
Hello there!

Since switching to nginx/easyengine setup my mp4 files that are linked directly are no longer getting downloaded but instead opened up in the browser. How can I force nginx to download ALL (everything, because the server is used only for downloads) that is linked to ? (including mp4's)

I tried this but it didn't seem to work:
server {
location ~ \.mp4$ {
types { application/octet-stream .mp4; }
default_type application/octet-stream;
}
}

Any ideas?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>