From 04ededfecbad654ca89516ea1141be6424c01b36 Mon Sep 17 00:00:00 2001 From: funkman Date: Wed, 15 Nov 2006 13:31:39 +0000 Subject: [PATCH] Added a 401 page to let the user know what file to change to gain access to the manager app in a stock install. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@475229 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/manager/401.jsp | 32 ++++++++++++++++++++++++++++++++ webapps/manager/WEB-INF/web.xml | 7 ++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100755 webapps/manager/401.jsp diff --git a/webapps/manager/401.jsp b/webapps/manager/401.jsp new file mode 100755 index 000000000..fea104a78 --- /dev/null +++ b/webapps/manager/401.jsp @@ -0,0 +1,32 @@ +<% + response.setHeader("WWW-Authenticate", "Basic realm=\"Tomcat Manager Application\""); +%> + + + 401 Unauthorized + + + +

401 Unauthorized

+

+ You are not authorized to view this page. If you have not changed + any configuration files, please examine the file + conf/tomcat-users.xml in your installation. That + file will contain the credentials to let you use this webapp. +

+

+ You will need to add manager role to the config file listed above. + For example: +

+<role rolename="manager"/>
+<user username="tomcat" password="s3cret" roles="manager"/>
+
+

+ + + diff --git a/webapps/manager/WEB-INF/web.xml b/webapps/manager/WEB-INF/web.xml index 49ed1fc3e..1ee451903 100644 --- a/webapps/manager/WEB-INF/web.xml +++ b/webapps/manager/WEB-INF/web.xml @@ -24,7 +24,7 @@ Tomcat Manager Application A scriptable management web application for the Tomcat Web Server; - Manager lets you view, load/unload/etc particular web applications. + Manager lets you view, load/unload/etc particular web applications.