Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Get user IP on application behind Azure application gateway

$
0
0

We had encountered an issue after move our web application from Apache web proxy to Azure Application Gateway, in which our web application will authenticate an incoming user session from internet via his/her incoming public IP address, technically from http header field called ‘Remote_Addr’, however after move our web application to Azure application gateway, the same header field does not contains the actual public IP address instead it contains the private IP address of Azure Application Gateway.

After we did some research, we knew that the header field is changed to ‘x-forwarded-for’. Our question is do we have ways to re-configure Azure application Gateway to log/write user’s incoming public address to ‘Remote_Addr’? Otherwise, our application might have a bunch of internal modules need to be rewritten in order to cater for this header field changes.


Viewing all articles
Browse latest Browse all 6513

Trending Articles



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