Files in location
    B.R. 
    reallfqq-nginx at yahoo.fr
       
    Wed Feb  1 05:32:58 UTC 2012
    
    
  
Hello,
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 .* http://inter.net permanent;
}
http://intra.net/ is redirected as wanted
http://intra.net/codes.txt 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: <http://mailman.nginx.org/pipermail/nginx/attachments/20120201/a338d255/attachment.html>
    
    
More information about the nginx
mailing list