You can write a module at NGX_HTTP_POST_READ_PHASE.<br><br>And at the handler function, change the r->uri.data[1] to lowercase. And return NGX_DECLINED;<br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 10:42 AM, Dennis J. <span dir="ltr"><<a href="mailto:dennisml@conversis.de">dennisml@conversis.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
I'm trying to find a way to change the case of a part of the uri like this:<br>
<br>
"/TeSt/File.txt" => "/test/File.txt"<br>
<br>
i.e. I want to change the first path component of the uri to lower case.<br>
My question is how this can be achieved in a module? I cannot find the proper place where to modify the uri and then simply let nginx deliver the file at that location. I also tried looking at the rewrite module but could not see where it actually modifies the request structure to store the new location after a rewrite has happened. Can anyone point me in the right direction?<br>
<br>
Regards,<br>
Dennis<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>The time you enjoy wasting is not wasted time!<br>