Blocking directory listing on a wamp server
6,305
You'll need a line
Options -Indexes
in your configuration, either via .htaccess
or the httpd.conf
.
http://httpd.apache.org/docs/2.2/mod/core.html#options
Author by
Cairn Langan
Updated on September 18, 2022Comments
-
Cairn Langan almost 2 years
So I have a website that runs through wamp however if you type a path in the address bar, you get an index of the directory, which I don't want
I have already tried to add a
.htaccess
file in the directory to stop it indexing (sayingIgnoreIndex *
) and went into the apachehttpd.conf
file and changingInclude conf/extra/httpd-autoindex.conf
to:
# Include conf/extra/httpd-autoindex.conf
however none have worked... I have tried restarting my server, restarting services, but nothing... Help?