Re: proxy_pass only if a file exists

2013-05-04 Thread Francis Daly
On Tue, Apr 30, 2013 at 10:25:34AM -0400, mrtn wrote: Hi there, > I need to make sure a file actually exists before proxy_pass-ing the request > to an upstream server. I don't serve existing files directly using Nginx > because there are some application-specific logic i need to perform on the >

Re: proxy_pass only if a file exists

2013-04-30 Thread mrtn
Sorry, I meant to say that (!-f $request_filename) check IS a terrible way to check the existence of the file, as suggested by the documentation. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238747,238750#msg-238750 ___ nginx mailing list n

proxy_pass only if a file exists

2013-04-30 Thread mrtn
I need to make sure a file actually exists before proxy_pass-ing the request to an upstream server. I don't serve existing files directly using Nginx because there are some application-specific logic i need to perform on the application server for such requests. I've looked at try_files, but it se