What is the ‘Index Manager’ tool and how does it work?
Print Email
Email this article
Close
Email this article
CloseYou are here: Home > Website Support > .htaccess Config
The Index Manager 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 (http://myaccount.hetzner.co.za)
- Login with your Client number and Management password
- 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 (http://myaccount.hetzner.co.za)
- Login with your Client number and Management password
- 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’
Was this information helpful?
Yes NoThank you for your feedback
We are delighted to find that our article resolved your query.
Thank you for your feedback
We will resolve your query as soon as possible.
Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.
