Displaying default index.html file in web site

I set up a web site in Apache on my linode, and created html and cgi-bin directories for it. When I point my browser to it, I don't see the index.html file in the html directory, but rather the list of files in the parent directory.

How do I set up Apache so the browser will display the default index.html file in the html folder. Also, what do I have to do (if anything) to get cgi-scripts to execute from the cgi-bin directory.

If there's an existing tutorial about this, I'd love to hear about it.

Thanks!

  • Chris M.

1 Reply

http://httpd.apache.org/docs/2.2/mod/mo … ctoryindex">http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex

Note that you need to enable mod_dir, but I think it is by default in most distributions.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct