Duplicate Directory sections in Apache HTTPD configuration

Solution Unverified - Updated -

Issue

I have two <Directory> sections for the same directory in my Apache HTTPD configuration and it seems like only the lowest one in the file is being used.

<Directory "/var/www/html/test">
  Order allow, deny
  Allow from all
</Directory>
<Directory "/var/www/html/test">
   Order deny, allow
   Deny from all
</Directory>

Environment

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