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, 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