Servertec Servlets
Documentation
Conventions
Command Line
Java API
Servlet API
Servlets
Config Files
Classes
Directory Tree

Return

 

Servertec Internet Server Servlets uses the following Servlets.

Servlet Description
CommandServlet CommandServlet, is used by iwsCommand, stop_iws and restart_iws to stop and restart the server.

aliases.ini

/command = servlet:CommandServlet

servlets.ini

CommandServlet = stec.iws.CommandServlet
?username=admin
&password=admin
&remote_admin=y

username The username of the administrator.

admin is the default username.

password the password of the administrator.

admin is the default password.

remote_admin
_enabled
whether to allow computers other than localhost (127.0.0.1) to administer Servertec Internet Server.

Use y to enable and n to disable.

y is the default for Servertec Internet Server.

Setting this value to y is potentially a security hole.

Notes

Administrators should immediately change the default Username/Password from the Server form [Login > Monitor > Control Panel > Manage > Server].

Username/Password should not be any obvious word, easily guessed terms, should be at least 8 characters and should contain letters, numeric and symbols.

Additionally Username/Password should be kept private, with limited controlled disclosure and should be changed frequently.

Normally defined as a Servlet aliased as /command.

CommandServlet accepts the following request parameters:

action The action to take, [restart|stop].

restart is used to restart the server.

stop is used to stop the server.

id The administrator's username as defined in /ejc_iws/deploy/config/iws.ini.
pw The administrator's password as defined in /ejc_iws/deploy/config/iws.ini.

CommandServlets returns the following status codes:

200 Server was stopped/restarted.
401 Invalid username/password.
403 Server can not be administered remotely.
501 Invalid action.

Example

http://localhost:8080/command
?id=admin&pw=admin&action=stop
FileServlet FileServlet provides access to both files directories.

aliases.ini

/ = servlet:FileServlet

servlets.ini

FileServlet = stec.iws.FileServlet
?default_file=admin.html&directory_access=n

default_file The name of the default html document to retrieve, if non was specified.

index.html is the default for Servertec Internet Server.

directory
_access
Whether to allow directories to be displayed.

n is the default for Servertec Internet Server.

Setting this value to y is potentially a security hole.

Servertec Internet Server uses /ejc_iws/deploy/html/directory.html, an html template, when displaying a directory.

System-wide parameters used by FileServlet are defined in /ejc_iws/deploy/config/iws.ini.

root_dir The root directory for html files and documents.

./wwwroot is the default for Servertec Internet Server.

./public_html is also a popular value used by Web Servers.

All references to files are made relative the base directory.

Normally defined as a Servlet aliased as /.

 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Mon Sep 05 14:25:45 EDT 2005