Forum

Apache DirectoryIndex equivalent

Duke
19 March 2012, 15:14
Hiawatha version: 8.1
Operating System: Linux Ubuntu

Is there an equivalent to the Apache directive:

DirectoryIndex index.html index.cgi index.php index.ht
Epe
19 March 2012, 15:22
yes, it is called

ShowIndex = yes

check here: http://www.hiawatha-webserver.org/manpages
Epe
19 March 2012, 15:24
sorry! this is for showing index when no index file is defined.

the most similar parameter to the one you request is:

StartFile =

for example: StartFile = index.php

as far as I know, there is no way to include several indexes, but you can define one startfile per virtualhost
Duke
19 March 2012, 15:32
@Epe
Yeah! I knew about the "StartFile" parameter! I was hoping that Hiawatha could be told to accept various extensions to an "index" file. Oh well..... ! Thanks for the input.
Hugo Leisink
24 March 2012, 21:22
Hiawatha does not support multiple start files to be defined. If you want a different start file for a certain directory, place a StartFile option in a .hiawatha file in that directory. As described in the F.A.Q.
Duke
24 March 2012, 21:27
OK! thanks ... I read the F.A.Q.
Duke
2 April 2012, 16:45
From the F.A.Q:
Can I specify multiple startfiles for a virtual host?

No. If you want to use a different startfile for a directory, use the StartFile option in a .hiawatha file in that directory.


How does Hiawatha know which directory the .hiawatha file(s) live?? Does Hiawatha check all "directories" under "DocumentRoot"?
Hugo Leisink
2 April 2012, 16:48
No, only when a file is requested, it searches for the .hiawatha file. It is better to use the Directory{} setting in hiawatha.conf.
This topic has been closed.