aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/http/WebServer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java
index 9030e992b..21a7ba775 100644
--- a/src/org/traccar/http/WebServer.java
+++ b/src/org/traccar/http/WebServer.java
@@ -66,7 +66,11 @@ public class WebServer {
ResourceHandler resourceHandler = new ResourceHandler();
resourceHandler.setResourceBase(properties.getProperty("web.path"));
- resourceHandler.setWelcomeFiles(new String[]{"index.html"});
+ if (Boolean.valueOf(properties.getProperty("web.debug"))) {
+ resourceHandler.setWelcomeFiles(new String[]{"debug.html"});
+ } else {
+ resourceHandler.setWelcomeFiles(new String[]{"release.html"});
+ }
HandlerList handlerList = new HandlerList();
handlerList.setHandlers(new Handler[] {servletHandler, resourceHandler});