How the the operation of precedence of directives <Files> and <Directory> work?

Solution Verified - Updated -

Issue

  • Customer is using Apache directives and into VirtualHosts and would like to set index.php as the index and unique files accessed, but this happen only if user type in the url index.php. If doesn't an 403 no browser (Forbidden) error happen.
  • Customer, wants to understand the operation of precedence of directives and .

Environment

  • Red Hat Enterprise Linux 5, 6 and 7
  • Apache 2

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.