Duplicate Directory sections in Apache HTTPD configuration
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
