Welcome! Log In Create A New Profile

Advanced

Re: Sub-request using Parent Request Body

Roman Vasilyev
January 07, 2011 03:18PM
>> 2) when I'm just including *rewrite_by_lua* with simple return, I'm loosing
>> all headers from parent cite, please help me with best solution for that.
>>
> I'm not sure what you're talking about here. Can you provide a minimal
> config sample for this issue?
>
Showing 2 config which replacing whole headers from proxy to some
internal staff:
= *WRONG* headers =======

HTTP/1.1 200 OK
Server: nginx/0.9.3
Date: Fri, 07 Jan 2011 02:07:34 GMT
Content-Type: text/plain
Content-Length: 0
Connection: close

1) ==================
location / {
access_by_lua '
';
include proxy.conf;
}
2) ==================
location / {
rewrite_by_lua '
';
include proxy.conf;
}
= *CORRECT* headers ======

HTTP/1.1 200 OK
Server: nginx/0.9.3
Date: Fri, 07 Jan 2011 20:10:38 GMT
Content-Type: text/html
Connection: close
Accept-Ranges: bytes
Via: 1.1 netcache-c (NetCache NetApp/5.6.2R1D19)

==================

location / {
include proxy.conf;
}

>
>> 3) why you prefer NDK to clear nginx environment?
>>
> NDK just provides the "set_var" mechanism for ngx_lua. What do you
> mean by "clearing nginx environment"?
>
I mean if you using just this function may be better to include it into
your module
NDK patchnig nginx and it not clear, because you actually never need it.

> Cheers,
> -agentzh
>


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Sub-request using Parent Request Body

Roman Vasilyev January 03, 2011 10:00PM

Re: Sub-request using Parent Request Body

agentzh January 03, 2011 10:22PM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 03, 2011 10:54PM

Re: Sub-request using Parent Request Body

agentzh January 04, 2011 01:28AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 04, 2011 07:24PM

Re: Sub-request using Parent Request Body

agentzh January 06, 2011 12:06AM

Re: Sub-request using Parent Request Body

agentzh January 06, 2011 12:08AM

Re: Sub-request using Parent Request Body

agentzh January 06, 2011 12:16AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 06, 2011 07:38PM

Re: Sub-request using Parent Request Body

Adrian Janeczek January 06, 2011 07:38PM

Re: Sub-request using Parent Request Body

agentzh January 07, 2011 01:40AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 07, 2011 03:18PM

Re: Sub-request using Parent Request Body

agentzh January 08, 2011 02:26AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 10, 2011 02:42PM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 10, 2011 03:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
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