How to whitelist the client IP in Location tag for Apache webserver

Solution Verified - Updated -

Issue

  • Our current configuration for whitelist the client IP are below. Apache is behind the loadbalancer (like F5/A10) which routes the traffic to Apache --> Jboss.
Vhosts file tags:

<Location />
      Order Allow,Deny
      Include conf.d/whitelist.inc
   </Location>
  • So,How can we whitelist the client IP coming through X-Forwarding-For and what will be the syntax/tag to be used in Location tag for apache.?

Environment

  • Red Hat JBoss Web Server
    • 2.1.0

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.