Hitachi

uCosminexus Application Server HTTP Server User Guide


4.12.1 Generating multiple Web server environment (hwsserveredit command)

If multiple Web servers are running on a single server machine and not in the virtual host, you need to set the environment such as preparing the httpsd.conf on each Web server. The hwsserveredit command supplements this environment setting.

Organization of this subsection

(1) Format

hwsserveredit {-add|-add_woker|-add_prefork|-delete|-check} server-name

(2) Parameters

(3) How to use

(a) Creating the resource

Determine the server name of each server, and execute the hwsserveredit command. Specify the following, if the server name is HWS1:

hwsserveredit -add HWS1

The hwsserveredit command creates directories and files under the server directory that is created when installing the server. In Windows version, the utility registers the service using server name at the same time when creating directories and files.

The configuration of directories and files are as follows:

+httpsd
   +servers
       +HWS1
          +conf
          |  +httpsd.conf
          +logs

(b) Editing the httpsd.conf

Change the httpsd.conf directive value in the created resources.

When you generate multiple environments, change the values of following directives so that the environment does not clash with other environments:

  • ServerName directive

  • Port directive or Listen directive

  • PidFile directive

For the UNIX version, change the setting value of following directives according to the environment:

  • User directive

  • Group directive

Other directives are set in such a way that they can run even if you do not change their settings depending upon the hwsserveredit command. Depending upon the operations, change the settings if required.

For details on each directive, see 6.2 Details of the directives.

(c) Starting up the server

Start up the server by following method:

  • For UNIX version

    /opt/hitachi/httpsd/sbin/httpsd -f servers/HWS1/conf/httpsd.conf
  • For Windows version

    "Application-Server-installation-directory\httpsd.exe" -n HWS1 -k start

    Moreover, start up the HWSI service from the control panel.

(d) Setting up the multiple server environments

To set the multiple server environments repeat operations from (a) to (c).

(4) Notes