You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fu...@apache.org on 2006/11/15 14:31:40 UTC
svn commit: r475229 - in /tomcat/tc6.0.x/trunk/webapps/manager: 401.jsp
WEB-INF/web.xml
Author: funkman
Date: Wed Nov 15 05:31:39 2006
New Revision: 475229
URL: http://svn.apache.org/viewvc?view=rev&rev=475229
Log:
Added a 401 page to let the user know what file to change to gain
access to the manager app in a stock install.
Added:
tomcat/tc6.0.x/trunk/webapps/manager/401.jsp (with props)
Modified:
tomcat/tc6.0.x/trunk/webapps/manager/WEB-INF/web.xml
Added: tomcat/tc6.0.x/trunk/webapps/manager/401.jsp
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/manager/401.jsp?view=auto&rev=475229
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/manager/401.jsp (added)
+++ tomcat/tc6.0.x/trunk/webapps/manager/401.jsp Wed Nov 15 05:31:39 2006
@@ -0,0 +1,32 @@
+<%
+ response.setHeader("WWW-Authenticate", "Basic realm=\"Tomcat Manager Application\"");
+%>
+<html>
+ <head>
+ <title>401 Unauthorized</title>
+ <style>
+ <!--
+ BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;font-size:12px;}
+ H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
+ PRE, TT {border: 1px dotted #525D76}-->
+ </style>
+ </head>
+ <body>
+ <h1>401 Unauthorized</h1>
+ <p>
+ You are not authorized to view this page. If you have not changed
+ any configuration files, please examine the file
+ <tt>conf/tomcat-users.xml</tt> in your installation. That
+ file will contain the credentials to let you use this webapp.
+ </p>
+ <p>
+ You will need to add <tt>manager</tt> role to the config file listed above.
+ For example:
+<pre>
+<role rolename="manager"/>
+<user username="tomcat" password="s3cret" roles="manager"/>
+</pre>
+ </p>
+ </body>
+
+</html>
Propchange: tomcat/tc6.0.x/trunk/webapps/manager/401.jsp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tomcat/tc6.0.x/trunk/webapps/manager/401.jsp
------------------------------------------------------------------------------
svn:executable = *
Modified: tomcat/tc6.0.x/trunk/webapps/manager/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/manager/WEB-INF/web.xml?view=diff&rev=475229&r1=475228&r2=475229
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/manager/WEB-INF/web.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/manager/WEB-INF/web.xml Wed Nov 15 05:31:39 2006
@@ -24,7 +24,7 @@
<display-name>Tomcat Manager Application</display-name>
<description>
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.
</description>
<!-- Define the Manager Servlet
@@ -183,5 +183,10 @@
</description>
<role-name>manager</role-name>
</security-role>
+
+ <error-page>
+ <error-code>401</error-code>
+ <location>/401.jsp</location>
+ </error-page>
</web-app>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org