> It's because it is matching that regexp first. > > You could do your if (-f ) check inside of there > and it would probably > work, but that's kind of messy. I am doing a -f check in the location. Still doesn't work as I expect it to. Could you provide an example please? > I'm sure Igor can > post and give you a > much cleaner way to do the entire thing.by nmk - Nginx Mailing List - English
Hi all, I have nginx proxying to a couple of thin servers. For a request like /javascripts/foo.js a controller called 'javascripts' generates some dynamic js and caches it to $document_root/javascripts/foo.js. The relevant part of the nginx config file: root /apps/foo-app/current/public; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Foby nmk - Nginx Mailing List - English