Welcome! Log In Create A New Profile

Advanced

Multiple headers for real_ip_header

Posted by Miikka 
Multiple headers for real_ip_header
March 22, 2013 12:16AM
I have a setup where there is a CDN and a loadbalancer in front of nginx. CDN will enter client's IP into the True-Client-IP header and loadbalancer into the X-Cluster-Client-IP header.

Some of the requests come through CDN and some come directly through loadbalancer, I am now wondering how to handle this situation with real_ip_header, is there a way to instruct it to check first the True-Client-IP header and if it is not existing then proceed with X-Cluster-Client-IP?

Thank you for your suggestions and help.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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