|
|
| |
| Introduction
| |
Java Servlets and JSPs are made available
on the Virtual Server via Tomcat,
the flagship product of the Apache Jakarta
Project. Tomcat is a world-class implementation of the Java
Servlet 2.2 and Java Server Pages 1.1 Specifications.
| |
| Installation
| |
Do the following, according to your Virtual Server O/S.
| |
| Configuration
| |
The Tomcat installation includes online admin pages that can be
accessed at this URL:
http://YOUR-DOMAIN.NAME/admin/contextAdmin/contextAdmin.html
In order to
set up a user name and password for these online admin pages, complete
the following steps.
-
Change
the admin context to "true" . Open the ~/usr/local/jakarta/jakarta-tomcat-3.2.1/conf/server.xml
file and look for the following entry:
<!-- Admin context will use tomcat.core to add/remove/get info about
the webapplications and tomcat internals.
By default it is not trusted - i.e. it is not allowed access to
tomcat internals, only informations that are available to all
servlets are visible.
If you change this to true, make sure you set a password.
-->
<Context path="/admin"
docBase="webapps/admin"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
You need
to change the field trusted="false" to trusted="true" .
-
Open the
~/usr/local/jakarta/jakarta-tomcat-3.2.1/conf/tomcat-users.xml
file and add a user with roles set to admin. An example would
be as follows:
<user name="johnny" password="cash" roles="admin" />
The name
and password fields can be whatever you want but the roles need
to include admin, though there can be additional comma separated
roles.
-
Restart
Tomcat. Use these commands:
% kill PID
% virtual /usr/local/jakarta/jakarta-tomcat/bin/startup.sh
| |
| More Information
| |
For more information, see:
|
Toll Free 1-866-GSP-4400 • 1-301-464-9363 • service@gsp.com
Copyright © 1994-2016 GSP Services, Inc.
|