You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/02/10 20:08:15 UTC
cvs commit: jakarta-tomcat/src/admin/test sanity-form.jsp
costin 01/02/10 11:08:15
Modified: src/admin index.html
src/admin/test sanity-form.jsp
Log:
- Added a link to the test pages.
- added a short note about what to do in order to enable /admin
- small change in the test form.
XXX missing: an index.html in /admin/test with links to the "sanity"
test and the web-based watchdog runner.
Revision Changes Path
1.3 +54 -0 jakarta-tomcat/src/admin/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/admin/index.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- index.html 2000/12/27 21:41:23 1.2
+++ index.html 2001/02/10 19:08:14 1.3
@@ -31,7 +31,61 @@
<li><a href="./contextAdmin/moduleList.jsp">Modules</a>
<li><a href="./contextAdmin/contextAdmin.html">Context Admin</a>
<li><a href="/examples/jsp/snp/snoop.jsp">Snoop</a>
+ <li><a href="./test">Test applications</a>
</ul>
+
+<b>IMPORTANT: </b> In order to run the /admin applications you need to
+"trust it" and set a password. The /admin may be dangerous
+if left unprotected, and is disabled by default.
+<br>
+To enable the /admin you'll need to edit the file
+TOMCAT_HOME/conf/apps-admin.xml and change the "trusted" attribute
+to true. It should look like:
+<pre>
+ <Context path="/admin"
+ docBase="webapps/admin"
+ trusted="true" >
+ <SimpleRealm filename="conf/users/admin-users.xml" />
+ </Context>
+</pre>
+
+<p>
+You can also do that by running the command:
+<pre>
+Unix:
+$TOMCAT_HOME/bin/tomcat.sh -enableAdmin
+
+DOS:
+%TOMCAT_HOME%\bin\tomcat.bat -enableAdmin
+
+Java2:
+java -jar lib/tomcat.jar -enableAdmin
+
+Mac,Netware:
+???
+</pre>
+
+<p>
+To change the admin password you'll have to edit
+TOMCAT_HOME/conf/users/admin-users.xml and change the "password" attribute.
+
+<!--
+<p>
+You can do both by running the command:
+<pre>
+Unix:
+$TOMCAT_HOME/bin/tomcat.sh -enableAdmin password
+
+DOS:
+%TOMCAT_HOME%\bin\tomcat.bat -enableAdmin password
+
+Mac,Netware:
+???
+</pre>
+
+-->
+
+
</body>
</html>
1.3 +6 -3 jakarta-tomcat/src/admin/test/sanity-form.jsp
Index: sanity-form.jsp
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/admin/test/sanity-form.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sanity-form.jsp 2001/02/07 06:42:48 1.2
+++ sanity-form.jsp 2001/02/10 19:08:15 1.3
@@ -23,8 +23,11 @@
<br>
Host: <input type="input" name="host" value="<%= request.getServerName() %>">
<br>
-Expected protocol: <input type="input" name="server.proto"
- value="<%= request.getProtocol() %>">
- ( use when testing Apache - tomcat3.x returns HTTP/1.0 ) <br>
+Expected protocol:
+<select name="server.proto" >
+ <option selected>HTTP/1.0</option>
+ <option>HTTP/1.1</option>
+</select>
+ ( use HTTP/1.1 when testing with Apache or a 1.1 server connector ) <br>
<input type="submit">
</form>