I'm attempting to configure an Apache HTTP Server installation and I'm having a problem getting the Deny directive to work properly in both a general or VirtualHost context for some reason.
I stripped out as much as I could to try to isolate the problem, yet even this simple case doesn't work.
The httpd.conf file is simply:
ServerName localhost <Directory /> Order Allow,Deny Deny from All </Directory>
The virtual host's configuration file looks like this:
<VirtualHost *:80> ServerName site-1.mydomain.com ServerAdmin firstname.lastname@example.org DocumentRoot /var/www/site-1.mydomain.com/docroot/ <Directory /> Order Allow,Deny Deny from all </Directory> </VirtualHost>
Yet for some reason, the Deny directive doesn't work, and site-1.mydomain.com/index.html for example, loads normally when requested.
What could I be missing here? Any help would be much appreciated.