# Silly question

**URL:** https://forum.kirupa.com/t/silly-question/185417
**Category:** Uncategorized
**Created:** [April 13, 2006, 8:48am UTC](https://forum.kirupa.com/t/silly-question/185417 "2006-04-13T08:48:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kadal](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@kadal](https://forum.kirupa.com/u/kadal)
#### Post date: [April 13, 2006, 8:48am UTC](https://forum.kirupa.com/t/silly-question/185417/1 "2006-04-13T08:48:23Z")

</div>

:ne: I was wondering , how can I set default page in apache web server so when you type [www.a.com](http://www.a.com) the default page shows up and not list your directory content ( that other question , how can I disable listing my directory if there is no page found )

I’m never configure apache web server or even linux before. I’m windows minded :nerd:

thank you before

---

<div class="post-metadata">

### Author: ![Voetsjoeba](https://avatars.discourse-cdn.com/v4/letter/v/ac91a4/32.png) [@Voetsjoeba](https://forum.kirupa.com/u/Voetsjoeba)
#### Post date: [April 13, 2006, 9:27am UTC](https://forum.kirupa.com/t/silly-question/185417/2 "2006-04-13T09:27:04Z")

</div>

You can disable directory listing by simply putting in an index.php file that it will default to, or by placing a .htaccess file in your directory that you want to protect with the following in it:

```auto

Options -Indexes

```
