Welcome! Log In Create A New Profile

Advanced

Re: Modifying uri

Roast
January 13, 2010 10:30PM
You can write a module at NGX_HTTP_POST_READ_PHASE.

And at the handler function, change the r->uri.data[1] to lowercase. And
return NGX_DECLINED;

On Thu, Jan 14, 2010 at 10:42 AM, Dennis J. <dennisml@conversis.de> wrote:

> Hi,
> I'm trying to find a way to change the case of a part of the uri like this:
>
> "/TeSt/File.txt" => "/test/File.txt"
>
> i.e. I want to change the first path component of the uri to lower case.
> 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?
>
> Regards,
> Dennis
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



--
The time you enjoy wasting is not wasted time!
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Modifying uri

Dennis J. January 13, 2010 09:46PM

Re: Modifying uri

Roast January 13, 2010 10:30PM

Re: Modifying uri

Dennis J. January 13, 2010 11:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready