Apache httpd with mod_remoteip fails to log the right remote client address when behind Azure Remote Gateway

Solution Verified - Updated -


  • We have enabled mod_remoteip but httpd is still failing to log the right remote client ip in access logs and is still logging the proxy address
  • We have configured mod_remoteip correctly but it fails to work when requests come from Azure Application Gateway


  • Microsoft Azure Remote Gateway
  • Red Hat Enterprise Linux (RHEL)
    • 7+
  • Red Hat Software Collections (RHSCL)
    • 2.0+
  • Red Hat JBoss Web Server (JWS)
    • 3.0+
  • JBoss Core Services (JBCS)
    • 2.4.23+
  • Apache httpd
    • 2.4
  • Apache httpd
    • 2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In