|
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
/snap_iws/deploy/config/iws.ini.
|
|
pw
|
The administrator's password as defined in
/snap_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
|