Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 (saying IgnoreIndex *) and went into the apache httpd.conf file and changing

Include conf/extra/httpd-autoindex.conf


# Include conf/extra/httpd-autoindex.conf 

however none have worked... I have tried restarting my server, restarting services, but nothing... Help?

share|improve this question

1 Answer 1

You'll need a line

Options -Indexes

in your configuration, either via .htaccess or the httpd.conf.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.