Setting or clearing request->args

Igor Sysoev is at rambler-co.ru
Tue Sep 22 17:18:16 MSD 2009


On Tue, Sep 22, 2009 at 08:25:49AM -0400, leki75 wrote:

> Hello Igor,
> 
> I run some tests but it seems that after setting r->args.len=0 and r->args.data=NULL and returning NGX_OK the request arrives at the origin server untouched. 
> 
> Logs on the original server:
> 172.27.134.40 - - [22/Sep/2009:14:17:42 +0200] "GET /index.html?test=4ab8c062 HTTP/1.0" 404 169 "-" "-"
> 
> Expected result:
> 172.27.134.40 - - [22/Sep/2009:14:17:42 +0200] "GET /index.html HTTP/1.0" 404 169 "-" "-"

The you should replace "$request" with "$request_method $uri" in log_format.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list