• 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!
  • 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.

Question x-forwarded-for problem

bosstds

New Pleskian
Hi,
Got a strange problem today.
There's a certain web app which runs behind reverse proxy. In the example below 1.1.1.1 is the client IP, 2.2.2.2 is the server IP.

If there is the line
Code:
proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
in the nginx config, the web app shows that x-forwarded-for contains client IP twice, for example 1.1.1.1,1.1.1.1. The behaviour I would expect is to have 1.1.1.1,2.2.2.2 in this header, as x-forwarded for is supposed to contain all the proxies on the path to the backend.
If I remove this line, the x-forwarded-for contains only the server IP, for example 2.2.2.2. This is expected behaviour.


Am i missign something?
Code:
Product version: Plesk Onyx 17.0.17 Update #8
    Update date: 2016/12/03 03:29
     Build date: 2016/11/17 16:00
     OS version: CentOS 6.8
       Revision: ab6766191d3ba26e7b21255ab007fc7fc56d84c6
   Architecture: 64-bit
Wrapper version: 1.2
 
Back
Top