How to restrict access to Apache to using hostname and not IP address in the URL?

Solution In Progress - Updated -

Issue

  • How to restrict access to the website via IP address in the URL?
  • Is it possible to block IP direct access to the Apache httpd?

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 6
    • 7
  • Apache httpd
    • 2.2.x
    • 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