If I build a dynamic module against, say nginx 1.12.2 with `--with-compat`,
will it work with, say nginx 1.12.1 (assuming --with-compat all around)
I assume not, because I found this in ngx_module.c, separate from the
signature check. nginx_version has the minor version in it.
if (module->ver
Please disregard or delete this post. The problem was with my setup. It
works fine. Thanks.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,285923,285941#msg-285941
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/li
I'm trying to use the ngx_http_catch_body_filter example to capture request
bodies from post (etc.) requests.
I started with the example here in the hg repo:
https://www.nginx.com/resources/wiki/extending/examples/body_filter/
I changed the config to make it a dynamic nginx module.
I can see
I have a preaccess filter in my module that loads in the request_body with
`ngx_http_read_client_request_body` (it basically scans the buffer for
security violations, no modifications). I don't discard the buffer and this
module works fine when proxying POST requests or multiform data to a
downstr
here is with the body filter disabled (works normally):
HTTP/1.1 200 OK
Server: nginx/1.12.0
Date: Thu, 11 Jan 2018 04:16:07 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
here is with the body filter enabled (connection does not terminate):
HTTP/1.1 200 OK
Server:
I tried out this nginx example ngx_http_foo_body_filter body filter (here
http://nginx.org/en/docs/dev/development_guide.html#http_body_buffers_reuse
) and got that to work just fine. It inserts a "foo" string before each
incoming buffer.
I tried modifying a little bit so that it puts the foo str
Maxim Dounin Wrote:
---
>
> Try ngx_http_conf_get_module_main_conf().
>
> (Doing so in the create_loc_conf callback is probably pointless
> though, as main conf contents can be changed later.)
>
> --
> Maxim Dounin
> http://nginx.org/
>
Maxim Dounin Wrote:
---
> Hello!
>
> On Wed, Aug 09, 2017 at 09:33:59PM -0400, ptcell wrote:
>
> > From the debugger I can see that it's probably some offset into
> > cf->ctx[index].main_conf, but I don't se
>From the debugger I can see that it's probably some offset into
cf->ctx[index].main_conf, but I don't see anyway of knowing what that index
is inside the loc create callback.
Is there any other way of getting this?Getting it at loc merge time
would be acceptable too.
void *ngx_http_my_modul
I've built with the sub filter enabled and I'm finding it hangs requests if
there is a match. It is a very simple substitution/replace. I've
resorted to following the request in GDB and the sub module completes and
calls the next body filter (which in my case appears to be the charset
module).
10 matches
Mail list logo