• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Resolved nginx log format & x-forwarded-for

IronDonDon

New Pleskian
Hello,
my server is behind a WAF and nginx logs get only $remote_addr entries. I would like to modify nginx conf for websites to include X-Forwarded-For entries, to handle client IPs. There are no x-forwarded-for fields per default.
Where should I take modifications in order to achieve this? Template file for a Vhost looks processing, but I have no idea how to modify it. What kind of format or parameter should I use?

Thank you.
 
Last edited:
Back
Top