On a local dev server, I have an Apache conf for a website like so
<VirtualHost *:80> ServerAdmin no-reply@localhost ServerName sandbox.mysite.internal DocumentRoot /var/www/vhosts/sandbox/mysite ErrorLog logs/sandbox/mysite-error.log CustomLog logs/sandbox/mysite-access.log common </VirtualHost>
If I visit the following address (there is no index.php or index.html)
I get the Apache CentOS test page
If I visit a subdirectory like
I get a
403 Forbidden error. So I add the following
Now when I visit:
I still get 403 Forbidden.
How do I make the directory index show up?
I always thought
.htaccess directives override any
httpd.conf directives. But am I wrong about that? Is there some setting in my
httpd.conf that is making my
.htaccess directive be ignored?