As suggested on the users list, add redirects to the HTML interface to the root of...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 16 Jul 2010 09:09:44 +0000 (09:09 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 16 Jul 2010 09:09:44 +0000 (09:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@964722 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/changelog.xml
webapps/host-manager/WEB-INF/web.xml
webapps/host-manager/index.jsp [new file with mode: 0644]
webapps/manager/WEB-INF/web.xml
webapps/manager/index.jsp [new file with mode: 0644]

index f83c31d..ee5b960 100644 (file)
         <bug>49570</bug>: When using the example compression filter, set the
         Vary header on compressed responses. (markt)
       </fix>
+      <add>
+        Add redirects for the root of the manager and host-manager web
+        applications that redirect users to the html interface rather than
+        returning a 404. (markt)
+      </add>
     </changelog>
   </subsection>
   <subsection name="Other">
index 48d752f..39cff05 100644 (file)
@@ -51,7 +51,7 @@
     <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class>
     <init-param>
       <param-name>entryPoints</param-name>
-      <param-value>/html,/html/,/html/list</param-value>
+      <param-value>/html,/html/,/html/list,/index.jsp</param-value>
     </init-param>
   </filter>
   
diff --git a/webapps/host-manager/index.jsp b/webapps/host-manager/index.jsp
new file mode 100644 (file)
index 0000000..d4816e5
--- /dev/null
@@ -0,0 +1,18 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<% response.sendRedirect(response.encodeRedirectURL(request.getContextPath() +
+        "/html")); %>
\ No newline at end of file
index 29864ab..5487604 100644 (file)
@@ -88,7 +88,7 @@
     <filter-class>org.apache.catalina.filters.CsrfPreventionFilter</filter-class>
     <init-param>
       <param-name>entryPoints</param-name>
-      <param-value>/html,/html/,/html/list</param-value>
+      <param-value>/html,/html/,/html/list,/index.jsp</param-value>
     </init-param>
   </filter>
   
diff --git a/webapps/manager/index.jsp b/webapps/manager/index.jsp
new file mode 100644 (file)
index 0000000..d4816e5
--- /dev/null
@@ -0,0 +1,18 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<% response.sendRedirect(response.encodeRedirectURL(request.getContextPath() +
+        "/html")); %>
\ No newline at end of file