following symlinks

jackdempsey nginx-forum at
Tue Mar 31 23:38:40 MSD 2009

Hi all,

I'm trying to serve up some static files that I've linked to via a symlink. The -f check is failing:

# check if the file exists and serve it
    if (-f $request_filename) {
      access_log        off;
     expires           1d;

as its obviously not a file. I saw something that suggested using -e instead for symlinks, but that doesn't seem to work for me either (this is version 0.6.32 fwiw). Anyone have any suggestions on what I can do to have symlink'ed files served up?

thanks so much,

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

More information about the nginx mailing list