Forum Moderators: phranque
I figured out how to block directory file listings using Options -Indexes but it leaves the directory with a blank page. I would like to show something in the direction of "Sorry, you cant view the directory listing". (like how I can edit my own 404).
Anyone know how to do this?
Thanks!
The result for subsequent accesses should be the default 403-Forbidden response, however you have that configured.
To display a custom error page for 403 errors and others, see the Apache ErrorDocument directive [httpd.apache.org].
...and please carefully read the fine print in there about the form of the ErrorDocument URL-path, and save yourself the grief of a very common problem. :)
Jim