Forum

Multiple index type

Fred
9 May 2016, 21:23
Hi Hugo,

I've tried to search your site for example but I couldn't find any.
This question relate to my previous post: https://www.hiawatha-webserver.org/forum/topic/2259
How can I get Hiawatha to accept both index.shtml and index.php?
like
StartFile = index.shtml,index.php

I tried the above but that dib't worked.
Also tried to use
Directory{} 
but again I failed.
Thank you in advance

Fred
Fred
9 May 2016, 21:58
Hi Hugo,

I just tried to create a .hiawatha with
StartFile = index.php
in it but still 404 page .
Hiawatha is still looking for index.shtml
|Unable to open primary script: /www/development/httpdocs/cart/index.shtml (No such file or directory)
Fred
10 May 2016, 00:46
SOLVED
Added the following along with the .hiawatha allowed me to have index.shtml and index.php
VirtualHost{
...
UseLocalConfig = yes
...
}

Hope someone else will find this usefull
This topic has been closed.