How to use if to restrict access by IP in Apache httpd 2.4?

Solution Verified - Updated -

Issue

  • Apache httpd <If> configuration does not work to restrict client access
  • How to use <If> in the Apache httpd 2.4.x?

Environment

  • Red Hat Enterprise Linux (RHEL) 7.x
  • Red Hat JBoss Web Server (JWS) 3.0.x
  • Red Hat JBoss Core Services (JBCS) Apache HTTPD 2.4.x
  • Apache HTTPD 2.4.x

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.