Welcome! Log In Create A New Profile

Advanced

Re: Logging POST body

Maxim Dounin
October 15, 2014 02:14PM
Hello!

On Wed, Oct 15, 2014 at 12:50:23PM -0400, keeyong wrote:

> I am using ngixing as a reverse proxy in front of apache (PHP) as a load
> balancer and a logger. For some endpoints, I want to log their POST bodies
> and I looked up the Web and found some solution requiring to install
> HttpEchoModule. Is there any other way of achieving this? Preferably without
> installing any new module?

Yes, you can access a request body either via $request_body
variable, or with, if it's saved to a file, via $request_body_file
variable.

Related documentation links:

http://nginx.org/r/$request_body
http://nginx.org/r/$request_body_file
http://nginx.org/r/client_body_in_file_only
http://nginx.org/r/client_body_buffer_size

--
Maxim Dounin
http://nginx.org/

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

Logging POST body

keeyong October 15, 2014 12:50PM

Re: Logging POST body

mex October 15, 2014 02:01PM

Re: Logging POST body

Maxim Dounin October 15, 2014 02:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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