Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a website (say being hosted on a LiteSpeed web server.

I've created a directory at but I'm unable to list the contents and get a 404 error. How can I fix this?

share|improve this question

migrated from Apr 30 '11 at 7:44

This question came from our site for computer enthusiasts and power users.

up vote 2 down vote accepted

If this is an Apache Server you could try creating a file called .htaccess in the media directory with the following contents

Options   Indexes

If suitably configured this will allow and Apache server to provide directory listings.

share|improve this answer

Typically directory listings are generated by the web server itself, and that feature may be disabled on your host (and it's often good that it's disabled, for security reasons).

If you have access to the control panel for the web server, you may be able to enable the setting yourself. Unlikely as you indicated you have been provided with hosted space.

You can work around it by creating a PHP file which will list out the contents of your chosen directory. See the instructions for this here.

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.