Welcome! Log In Create A New Profile

Advanced

Re: HttpSecureLinkModule timestamp inside uri

Valentin V. Bartenev
April 06, 2012 12:04PM
On Friday 06 April 2012 17:25:53 nenad wrote:
> thank you, that worked!
>
> can you also say me how i can point to correct root without /t{time},
> now it try to open the file in a folder with timestamp in.
>
> www.example.aaa/260/7/4/3/4255/4543535/t1331894408/1234_x.jpg?a=1234567888
>
> means it try to open it in:
> /media/photos/260/7/4/3/4255/4543535/t1331894408/1234_x.jpg instead
> /srv/media/260/7/4/3/4255/4543535/1234_x.jpg
>

http://nginx.org/r/alias


location ~ ^(.+)/t(?P<t>\d+)(/\d+_x\.(?:jpe?g|gif|png))$ {

secure_link $arg_a,$t;
secure_link_md5 mysecretword$uri$t;

alias /srv/media$1$3;
...
}


wbr, Valentin V. Bartenev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HttpSecureLinkModule timestamp inside uri

nenad April 05, 2012 04:56AM

Re: HttpSecureLinkModule timestamp inside uri

Valentin V. Bartenev April 05, 2012 08:06AM

Re: HttpSecureLinkModule timestamp inside uri

nenad April 06, 2012 09:25AM

Re: HttpSecureLinkModule timestamp inside uri

Valentin V. Bartenev April 06, 2012 12:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready