atom feed13 messages in ru.sysoev.nginxRe: following symlinks
FromSent OnAttachments
jackdempseyMar 31, 2009 12:38 pm 
Michael ShadleMar 31, 2009 1:07 pm 
Michael ShadleMar 31, 2009 1:08 pm 
Igor SysoevMar 31, 2009 10:32 pm 
Igor SysoevApr 1, 2009 12:06 am 
jackdempseyApr 1, 2009 7:57 am 
Igor SysoevApr 1, 2009 8:06 am 
Igor SysoevApr 1, 2009 10:03 am 
Michael ShadleApr 1, 2009 10:03 am 
Michael ShadleApr 1, 2009 10:13 am 
Igor SysoevApr 1, 2009 12:54 pm 
jackdempseyApr 3, 2009 7:33 am 
jackdempseyApr 3, 2009 8:02 am 
Subject:Re: following symlinks
From:jackdempsey (ngin@nginx.us)
Date:Apr 1, 2009 7:57:25 am
List:ru.sysoev.nginx

Thanks Igor, Mike. I've tried the -e flag, and it doesn't seem to follow the
symlinks correctly:

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

# check for an index file, and serve that if (-e $request_filename/index.html) { rewrite (.*) $1/index.html break; }

# rails page caching if (-e $request_filename.html) { rewrite (.*) $1.html break; }

# route traffic to sae-conf cluster if (!-e $request_filename) { proxy_pass http://site-here; break; }

When I make the link a hardlink, it does work correctly (with just the -f flag).
The -e test should work on 0.6.32, right? Is there anything else I might need to
do, any option, compile flag, etc? I can't imagine so, but I'm pretty confident
given my local tests that its not working. Anyone have a config with -e working
on symbolic links? Maybe its worth putting together a demo site/config myself
and seeing if it would work for others. Thanks again for the help.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,677,714#msg-714