The Index Manager tool and how it works
If you are using our new Control Panel, refer to this article.
Make the switch and discover a simpler, more secure way to manage your hosting.
The Index Manager tool allows you to a) disable directory browsing and b) specify which default files (in order of preference) the webserver must return when a visitor browses to any folder without specifying a specific filename at the end of the URL.
For example, if you upload numerous files into your public_html folder and then browse to your website eg. http://www.my-domain.com, how does the server know which file to return? The Index Manager tells it which default filenames to look for (as per the below list) in order of preference:
- index.html
- index.htm
- index.php (PHP only available with Basic accounts or higher)
- home.html
- welcome.html
If no file by the above names can be found, a directory listing of all files in the directory will be displayed. The Index Manager will allow you to change the name of your default page(s) and the order in which they will be searched.
How to change the default file using the Index Manager in konsoleH:
- Browse to konsoleH and log in at Admin or Domain level
- If Admin level – Select or search for a domain name in the Hosting Service tab
- Select or search for a domain name in the Hosting Service tab
- Click Manage Services from the left-hand menu
- Click Webserver Config under Configuration
- Click Index Manager
- Enter the default pages, in order of preference, separated by a space eg. firstpage.html default.html index.php index.html index.htm. (note: UNIX is case sensitive, so INDEX.HTML is not the same as index.html)
- Click Save
There may be directories where there is no file called by the same name as those specified in the default list and in this instance, the webserver will return a directory listing by default. This is undesirable and potentially insecure and therefore recommended that directory browsing is disabled. When directory browsing is disabled and a visitor browses to a folder where there is no default file present, a ‘404 Not found’ error is displayed.
How to disable directory browsing:
- Browse to konsoleH and log in at Admin or Domain level
- If Admin level – Select or search for a domain name in the Hosting Services tab
- Click Manage Services from the left-hand menu
- Click Webserver Config under Configuration
- Click Index Manager
- Click Disable (or ‘Enable’ to allow directory browsing)
- Click Save Changes