• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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