Welcome! Log In Create A New Profile


How to force mp4 downloads

Posted by julliuz 
How to force mp4 downloads
October 25, 2018 05:21AM
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?
Re: How to force mp4 downloads
November 06, 2018 01:07AM
hi .
i have a problem .
how to install X-Accel-Redirect on the nginx in the directadmin ?

please help me !
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready