From 7983a46d35fa2c5b40adc5965052bc1f293e43c2 Mon Sep 17 00:00:00 2001
From: markt
Date: Mon, 8 Jun 2009 21:29:27 +0000
Subject: [PATCH] Use a more sensible default. Patch suggested by Ian Darwin.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@782791 13f79535-47bb-0310-9956-ffa450edef68
---
java/org/apache/catalina/core/StandardHost.java | 2 +-
webapps/docs/config/host.xml | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/core/StandardHost.java b/java/org/apache/catalina/core/StandardHost.java
index 9bb6ef0dc..72c5e1f35 100644
--- a/java/org/apache/catalina/core/StandardHost.java
+++ b/java/org/apache/catalina/core/StandardHost.java
@@ -79,7 +79,7 @@ public class StandardHost
/**
* The application root for this Host.
*/
- private String appBase = ".";
+ private String appBase = "webapps";
/**
* The XML root for this Host.
diff --git a/webapps/docs/config/host.xml b/webapps/docs/config/host.xml
index 851ca3f15..ca89afe57 100644
--- a/webapps/docs/config/host.xml
+++ b/webapps/docs/config/host.xml
@@ -83,7 +83,8 @@
to the $CATALINA_BASE directory. See
Automatic Application
Deployment for more information on automatic recognition and
- deployment of web applications to be deployed automatically.
+ deployment of web applications to be deployed automatically. If not
+ specified, the default of webapps will be used.
--
2.11.0