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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content