• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Logging POST data not working

gennolo

Basic Pleskian
I am using Plesk Obsidian on a Centos 7 VPS.

I occasionally have the need to log POST data in received in web requests.

I tried following this guide which says to use "mod_dumpio" (which is already active in Plesk in the server's Apache modules).

I then inserted :

Code:
DumpIOInput On
DumpIOOutput On
LogLevel dumpio:trace7

in the "Apache additional directives" for my domain both for HTTP / HTTPS,
then I restarted httpd and sent a POST request to the server, but nothing appears in the logs for the involved domain.

Am I doing something wrong?
 
Hi,

I'm trying to log POST HTTP requests data too. Proxy mode is enabled, so only Nginx is used.

I have found that the needed configuration at Nginx.conf is :

log_format post_logs '[$time_local] "$request" $status '
'$body_bytes_sent "$http_referer" '
'"$http_user_agent" [$request_body]';

access_log /var/log/nginx/access.log post_logs;


But I'm getting the following error at Plesk "Apache & nginx Setting" of my Webspace :

Invalid nginx configuration: nginx: [emerg] "log_format" directive is not allowed here in /var/www/vhosts/system/applicarte.abidjan.net/conf/vhost_nginx.conf:153 nginx: configuration file /etc/nginx/nginx.conf test failed

Can any one help to log POST DATA for a subscription at plesk?

Thank you
 
Yeah, it's just not allowed in the A + N settings. You can edit the nginx configuration files directly. It'll be overwritten, but this should only be a temporary change anyways. It should be in /var/www/vhosts/system/<domain>/conf
 
Yeah, it's just not allowed in the A + N settings. You can edit the nginx configuration files directly. It'll be overwritten, but this should only be a temporary change anyways. It should be in /var/www/vhosts/system/<domain>/conf
Thank you for your help! I was looking for the link /var/www/vhosts/system/<domain>/conf/nginx.conf. I could log the body of post requests when adding the needed configuration at /var/www/vhosts/system/<domain>/conf/nginx.conf !

What is the condition that overwrite the file var/www/vhosts/system/<domain>/conf/nginx.conf ?

N.B: "access_log /var/www/vhosts/system/<domain>/access.log post_logs; "should be at "server " section.
 
Back
Top