Welcome! Log In Create A New Profile

Advanced

Redirect to symlink target

Jeff Mitchell
December 01, 2010 09:00PM
I'd like to have a file at an easy URL:

http://myserver/myfiles-latest.tar.gz

but where myfiles-latest.tar.gz is, on disk, actually a symlink to a
uniquely identifiable version, something like myfiles-[sha1sum].tar.gz.

What I'd like is for a user that fetches myfiles-latest.tar.gz to be
redirected to the target of the symlink, so that they end up getting the
file myfiles-[sha1sum].tar.gz. In this way they could be sure that they
wouldn't accidentally resume downloading a changed tarball (since
If-Unmodified-Since appears to be unsupported).

Is there any way to do this?

Thanks,
Jeff

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

Redirect to symlink target

Jeff Mitchell December 01, 2010 09:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
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