|
|
|
@ -180,8 +180,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// create default files array
|
|
|
|
|
defaultFiles = switchboard.getConfig("defaultFiles","index.html").split(",");
|
|
|
|
|
if (defaultFiles.length == 0) defaultFiles = new String[] {"index.html"};
|
|
|
|
|
initDefaultPath();
|
|
|
|
|
|
|
|
|
|
// create a htRootPath: system pages
|
|
|
|
|
if (htRootPath == null) {
|
|
|
|
@ -217,6 +216,12 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static final void initDefaultPath() {
|
|
|
|
|
// create default files array
|
|
|
|
|
defaultFiles = switchboard.getConfig("defaultFiles","index.html").split(",");
|
|
|
|
|
if (defaultFiles.length == 0) defaultFiles = new String[] {"index.html"};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Returns the path of a (existing) localized File, or the english one, if not availible.
|
|
|
|
|
* @param path is relative from htroot
|
|
|
|
|