Rewrite issues

Victor Iggy lists at
Mon Jun 9 22:46:31 MSD 2008

I am trying to redirect users to an upgrade page when there is an
"upgrade" file in the location block location. However it seems that it
is not picking up on it.

Here is the configuration.
location / {
  if (-f upgrade) {
                rewrite ^(.*) last;
... redirect to proxy configuration below ...

This should work no? if "upgrade" file exists rewrite the request.

Am I missing something here...

Posted via

More information about the nginx mailing list