addis_a
January 10, 2015, 12:12am
1
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
On Sat, Jan 10, 2015 at 12:11:20AM +0100, Silvio S. wrote:
Hi there,
I understand not why the link www.example.com/download
not work but www.example.com/download/ works.
The request /download does not match either of these location{} blocks.
location ~ ^/video/(.)$ {
location ~ ^/downloads/(. )$ {
Perhaps add
location = /download { return 301 /download/; }
(You may mean /download or /downloads, I’m not sure.)
f
Francis D. [email protected]
Hello,
On Fri, 9 Jan 2015 23:52:25 +0000 Francis D. [email protected]
wrote:
location = /download { return 301 /download/; }
Thank you it works.
Silvio