Files in location

B.R. reallfqq-nginx at
Wed Feb 1 05:32:58 UTC 2012


I would like to set up a rule redirecting the root location to another
address, but to serve files inside this location directly.
I tried the following:
location = / {
 rewrite .* permanent;
} is redirected as wanted is also redirected... but that is not intended

How to avoid that? SHould I try something with an if or a try_files
directive on the $uri variable?
*B. R.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list