<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css">p { margin:0px; padding:0px; }</style></head><body style='background-color:rgb(255, 255, 255);background-image:none;background-repeat:repeat;background-position:0% 0%;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:14.4px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;'><p><span style="font-family:Verdana;"><font size="1"></font></span><font size="+1"> I am writing simple module for Nginx based on echo module (<a target="_blank" href="http://wiki.nginx.org/NginxHttpEchoModule">http://wiki.nginx.org/NginxHttpEchoModule</a>).<br />  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 &quot;aaac&quot; is &quot;somehow&quot; counted from string &quot;car&quot;). Config for this would be simple: location ~ '/hello' {insertString;} -- internal redirect is no go in this way (I use the same base strings &quot;hello&quot; and I do now want difficult regex to be involed in conf file. This way, inserString &quot;makro&quot; would indicate to use my module) . I manage insert new path (&quot;</font><font size="+1">aaac</font><font size="+1">&quot;) 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 &quot;force&quot; nginx to continue &quot;handling&quot; the request by itself with the new uri like I've never modified anything? Thanks.<br /> Peter</font></p></body></html>