Why can't my directory under public/html be seen?
Last updated: July 31st, 2013 04:51 PM
The web server will not default to a directory listing if there's no index.html
file or a scripted equivalent (index.htm index.shtml index.cgi index.php index.phtml). There are two solutions: (a) generate a quick index.html file, or (b)
you can disable this feature on a per-directory basis by creating a file called
.htaccess in the directory in which you wish to enable browsing.
In this file, put a single line that says
options +Indexes