Use this command to create a new virtual server. The settings for virtual servers are stored in the server.xml file in the server_root/server_ID/config directory. All virtual servers have an HTTP listener specified. When a new request comes in, the Web Server determines which virtual server to send it to based on the configured HTTP listener.
For connect_options description, see help(1).
Specify this option to print this command on the standard output before executing. Also, prints the default value for all the non-mandatory options that you have not provided in the command.
If you specify this option, wadm will not prompt you for passwords while executing this command. Use this option if you have defined all passwords in a password file and specified the file using the --password-file connect_option.
Specify this option to display a verbose output.
Specify the name of an HTTP listener associated with one or more of the virtual server's host names.
Define a list of hosts to be added to the new virtual server. To specify multiple URLs, separate them by a comma (,).
Specify a canonical host name of the virtual server. Requests that use a different host name will be redirected to this host name.
Specify a log file for the ACL file that controls access to the virtual server.
Specify the document root for the virtual server.
Specify the configuration where you want to create a new virtual server.
wadm create-virtual-server --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --document-root=../docs config1_vs_1
The following exit values are returned:
command executed successfully
error in executing the command