Oh, missed part about nestedness to more levels...
You just can write multiple rewrites for 1 level, 2 levels and so on for
up to 9 levels deep. Would that be enough?
You can also build map of all possible redirects from all "virtual
folder names to "underscored" and use it faster than rewrite everything
at once.
You can also build recursive redirects like in my example, without break
to make nginx repeat cycle of rewrites again, up to 10 times.
Alex
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx