Forum Moderators: phranque
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
It works fine. If the user does not have a index.htm page in their directory, it shows this page. Now, the odd thing is, if I change the 3rd like to:
ErrorDocument 403 /error/noindex.php
(basically changing to php), then I get a forbidden error. Looking at the error_log, it says:
Directory index forbidden by rule: /home/thissite/www/
PHP works fine, if put the same php file right in the home dir, no problem.
Any ideas?
This does not Apply to Apache 2.x, because module priority is handled differently. It also doesn't apply in your specific case, since you're not running PHP as a module.
So, I'm stumped too. If you don't get any useful answers here, you might want to ask over in the PHP forum; There may be more people there who've seen this problem before.
Jim