Welcome! Log In Create A New Profile

Advanced

default handling of reqest

Peter Peter
May 08, 2010 07:54PM
 I am writing simple module for Nginx based on echo module (http://wiki.nginx.org/NginxHttpEchoModule http://wiki.nginx.org/NginxHttpEchoModule ).
The module should receive certain requests of images from web f.e. /hello/car.jpg and should fetch for file on drive's path /hello/aaac/car.jpg (the "aaac" is "somehow" counted from string "car"). Config for this would be simple: location ~ '/hello' {insertString;} -- internal redirect is no go in this way (I use the same base strings "hello" and I do now want difficult regex to be involed in conf file. This way, inserString "makro" would indicate to use my module) . I manage insert new path ("aaac") to request uri, but I do not know how to continue. I do not want to fetch the file and fill headers + body by my self since nginx surely knows how to do it (better than me:)). How can I "force" nginx to continue "handling" the request by itself with the new uri like I've never modified anything? Thanks.
Peter
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

default handling of reqest

Peter Peter 2291 May 08, 2010 07:54PM

Re: default handling of reqest

agentzh 933 May 09, 2010 10:54PM

Re: default handling of reqest

Peter Peter 1206 May 11, 2010 08:16PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready