download and movie alias

Silvio Siefke siefke_listen at web.de
Fri Jan 9 23:11:20 UTC 2015


Hello, 

i use static directory for my css files, video files and download 
directory. I understand not why the link www.example.com/download
not work but www.example.com/download/ works. Has someone an idea 
what is wrong?

 # video files for all websites
 location ~ ^/video/(.*)$ {
        alias /var/www/static/video/$1;
        mp4;
        flv;
        mp4_buffer_size 4M;
        mp4_max_buffer_size 10M;
        autoindex on;
 }

 # download directory for all websites
 location ~ ^/downloads/(.*)$ {
        alias /var/www/static/downloads/$1;
        autoindex on;
 }

Thank you for help & Nice day

Silvio



More information about the nginx mailing list