# Redirect to symlink target

**URL:** <https://www.ruby-forum.com/t/redirect-to-symlink-target/199965>\
**Category:** NGINX\
**Created:** [December 2, 2010, 2:56am UTC](https://www.ruby-forum.com/t/redirect-to-symlink-target/199965 "2010-12-02T02:56:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [December 2, 2010, 2:56am UTC](https://www.ruby-forum.com/t/redirect-to-symlink-target/199965/1 "2010-12-02T02:56:05Z")

</div>

I’d like to have a file at an easy URL:

[http://myserver/myfiles-latest.tar.gz](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
