Simple Rewrite Question

Alan Williamson alan at
Fri Jan 16 13:52:32 MSK 2009

Morning all.

I have a very simple request to clean up

I basically need to catch URI's that end with "/" and if they do, append
index.htm to them.   The upstream proxy doesn't like to see "/".

so a request:


would be rewritten to:


and so on ...

 http://xyz/mytest/ -> http://xyz/mytest/index.htm

BUT http://xyz/mytest is to be untouched!  Only if it has a / at the end.
I want to proxy_pass these to the backend.  I am struggling to get this
right, so any pointers/help would be appreciated


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list