D.2 HTTP Server settings
To specify HTTP Server settings for MC/ServiceGuard, follow the steps below.
-
Install HTTP Server onto a local disk at each node.
-
Create a script for monitoring HTTP Server, as needed.
For details on creating scripts, see Appendix D.3 Creating a monitoring script.
-
Set up MC/ServiceGuard.
For details on setting up MC/ServiceGuard, see Appendix D.4 MC/ServiceGuard settings.
-
To each node, distribute the HTTP Server configuration file, the monitoring script that you created in the previous step, and the script for controlling MC/ServiceGuard packages.
-
Start MC/ServiceGuard.
Note the following points when configuring environments.
- Organization of this subsection
(1) For a virtual host
As a result of a failover, the server name returned to the client might change. Therefore, be sure to set the ServerName directive on virtual hosts.
(2) Specifying IP addresses
Instead of a stationary IP address (which cannot be moved to another node), use a relocatable IP address (which is assigned to a package and can be moved to another node) for the directives that need an IP address to be specified (<VirtualHost>, BindAddress, and Listen).
(3) Checking the configuration file syntax
Before starting MC/ServiceGuard, run /opt/hitachi/httpsd/sbin/httpsdctl configtest to make sure that the server settings are correct.