Difference between revisions of "Directory Listing Denied"

From Hostek.com Wiki
Jump to: navigation, search
Line 1: Line 1:
==Directory Listing Denied==
+
'''Directory Listing Denied'''
__FORCETOC__
+
  
Generally, this error is caused by not having a default file in a directory. You you need to have a file with one of the following names in a directory to be able to browse to that directory:
+
Generally, this error is caused by not having a default file in a directory. You need to have a file with one of the following names in the directory to be able to browse to that directory:
  
default.htm<br/>
+
*default.htm
default.asp<br/>
+
*default.html
index.html<br/>
+
*default.asp
index.php<br/>
+
*default.cfm
index.asp<br/>
+
*index.html
index.aspx<br/>
+
*index.htm
index.cfm<br/>
+
*index.php
 +
*index.asp
 +
*index.aspx
 +
*index.cfm
 +
*home.htm
 +
*home.html
 +
*home.asp
 +
*home.cfm
 +
*home.aspx
  
Generally, files named "Default" or "index", followed by the appropriate extension, will work as the default file.
+
Generally, files named "Default" or "index" or "home", followed by the appropriate extension, will work as the default file.
  
 +
You can add your own '''default document''' in your control panel if you have or want your home page to be named something different.  The steps below show you how.
  
 +
__FORCETOC__
 
==Set a default document in WCP==
 
==Set a default document in WCP==
  
Line 21: Line 30:
 
# Click on the Default Docs tab at the top
 
# Click on the Default Docs tab at the top
 
# You can rearange these or remove by using the icons on the left. If you would like to add a new one scroll to the bottom and click +Add
 
# You can rearange these or remove by using the icons on the left. If you would like to add a new one scroll to the bottom and click +Add
 +
 +
 +
==Set a default document in cPanel==
  
 
[[Category:Tutorials]]
 
[[Category:Tutorials]]

Revision as of 03:58, 23 November 2012

Directory Listing Denied

Generally, this error is caused by not having a default file in a directory. You need to have a file with one of the following names in the directory to be able to browse to that directory:

  • default.htm
  • default.html
  • default.asp
  • default.cfm
  • index.html
  • index.htm
  • index.php
  • index.asp
  • index.aspx
  • index.cfm
  • home.htm
  • home.html
  • home.asp
  • home.cfm
  • home.aspx

Generally, files named "Default" or "index" or "home", followed by the appropriate extension, will work as the default file.

You can add your own default document in your control panel if you have or want your home page to be named something different. The steps below show you how.


Set a default document in WCP

  1. Log into your WCP
  2. Click on the IIS Settings Icon under the Website Settings area
  3. Click on the Default Docs tab at the top
  4. You can rearange these or remove by using the icons on the left. If you would like to add a new one scroll to the bottom and click +Add


Set a default document in cPanel