Welcome! Log In Create A New Profile

Advanced

Re: Странное поведение map

August 15, 2014 07:23PM
Что заработало, так это:

map $uri $header_one {
default "";
~/selfy/(?<fname>.*.+\.(mp4|m4v|avi|mp3|3gp|flv|mpeg|ogg|wmv)) "$fname";
}

location ~ /selfy {
add_header Content-Disposition 'attachment; filename="$header_one"';
}

но хотелось бы без локейшна
Subject Author Posted

Странное поведение map

mEajof August 15, 2014 07:21PM

Re: Странное поведение map

mEajof August 15, 2014 07:23PM

Re: Странное поведение map

Валентин Бартенев August 17, 2014 07:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready