Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Multiple headers for real_ip_header

$
0
0
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.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>