3.2.2 httpsd
The httpsd command starts the Web Server.
Synopsis
httpsd [[-d directory] [-f file-name] [-R directory]|-v|-t] [-D HWS_OPTION_HWS2]
Storage location
Application Server installation directory/httpsd/sbin
Function
Starts up the Web server.
You use this method to specify an httpsd.conf file name other than the default name or to specify the root directory and the httpsd.conf file when starting the server.
If you are using an encrypted private key for SSL, a request to enter the private key password is displayed when starting Web server.
Execution permission
Superuser or general user
Precondition
The PRF daemon needs to be running.
Environment variable
-
LD_LIBRARY_PATH(Linux)
Specify Application Server installation directory/common/PRF/lib.
-
PRFSPOOL
Sets the execution environment directory for the PRF daemon.
-
TZ
Sets the time zone.
Arguments
- -d directory
-
You can specify the default value used when the ServerRoot directive is not specified in the configuration file.
- -f file-name
-
You can specify the httpsd.conf file. Specify the httpsd.conf file with the absolute path or the relative path from the value specified in the ServerRoot directive.
- -R directory
-
This option specifies the absolute path of the directory storing the DSO execution library.
- -v
-
This option displays the version information. If you specify this option, Web Server will not start.
- -t
-
This option checks the configuration file syntax. If there is a syntax error, an error message will be displayed on the screen. If you specify this option, Web Server will not start.
- -D HWS_OPTION_HWS2
-
Specify this option to use the SSL functionality in Red Hat Enterprise Linux Server 6 (64-bit x86_64). For other platforms or if you do not use the SSL functionality, do not specify this option.
How to confirm the start
To confirm the start of Web server, check the control process. The process name (execution program name) is httpsd.
In addition, after starting Web server, confirm that the AH00163 message was output to the error log.
How to restart
You can use the kill command to restart Web Server:
kill {-HUP|-USR1} `cat PidFile-directive-specified-value`
- -HUP
-
Restart as when using the restart option of the httpsdctl command.
- -USR1
-
Restart as when using the graceful option of the httpsdctl command.
- PidFile-directive-specified-value
-
Specify a value (file name) that is specified in the PidFile directive.
How to end
When you use the httpsd command to start Web Server, execute the following command to end the process and stop Web Server:
kill {-TERM|-USR2} `cat PidFile-directive-specified-value`
- -TERM
-
Stop as when using the stop option of the httpsdctl command.
- -USR2
-
Stops as when using the gracefulstop option of the httpsdctl command.