Welcome! Log In Create A New Profile


Log Format with $request_body Not working

March 17, 2015 10:28AM
I am trying to log the incomming HTTP Request with the below given log_fromat. It is logging only '-'. could you please help what I am doing wrong.

Thanks in advance.

http {
include mime.types;
default_type application/octet-stream;
log_format postdata $request_body;
types_hash_bucket_size 64;
server_names_hash_bucket_size 128;

server {
listen 9080;
server_name X1n2d23;

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://www.google.com;
access_log /nginx/install/log/nginx/log_server.log postdata ;
Subject Author Posted

Log Format with $request_body Not working

aa2funworld March 17, 2015 10:28AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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