HttpSecureLinkModule timestamp inside uri

nenad nginx-forum at
Thu Apr 5 08:56:32 UTC 2012

I would like to use HttpSecureLinkModule to restrict access to some
member photos. Now I would like to have the timestamp inside the path
but I'm not sure how to implement that.

The timestamp I could get with \/t(\d+)\/ from uri, must I do a rewrite
and if yes how? Or exist a "single" operation way?


location ~ _x\.(jpg|jpeg|gif|png)$ {

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

  root /media/photos

Posted at Nginx Forum:,224960,224960#msg-224960

More information about the nginx mailing list