Sun Java System Web Server 7.0 Update 2 CLI Reference Manual
검색에만이 책은
PDF로 이 문서 다운로드 (2046 KB)

set-virtual-server-prop(1)

NAME | Synopsis | Description | Options | Operands | Examples | Exit Status | See Also

NAME

    set-virtual-server-prop – edits the virtual server properties

Synopsis

    set-virtual-server-prop <connect_options> [--echo|-e] [--no-prompt|-Q] 
    [--verbose|-v] --config|-c name --vs|-s vsname 
    (propertyname=value)+
    

Description

    Use this command to edit the virtual server properties. The properties that you can edit are as follows:

    • object-file - The obj.conf file that controls the request handling process for the virtual server.

    • canonical-server-name - The canonical host name of the virtual server. Requests using a different host name will be redirected to this host name.

    • enabled - Indicates whether the virtual server is enabled at runtime.

    • host - The hostname the virtual server services.

    • default-object-name - The name of the root obj.conf object.

    • name - The name that uniquely identifies the virtual server.

    • document-root - The document root for the virtual server.

    • mime-file - The mime.types file that configures MIME mappings for the virtual server.

    • log-file - The log file for the virtual server.

    • http-listener-name - The name of an HTTP listener associated with one or more of the virtual server's hostnames.

    • acl-file - The Access Control List (ACL) file that controls access to the virtual server.

Options

    For connect_options description, see help(1).

    --echo|-e

    Specify this option to print this command on the standard output before executing. This option also prints the default value for all the non-mandatory options that you do not provide in the command.

    --no-prompt|-Q

    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.

    --verbose|-v

    Specify this option to display a verbose output.

    --config|-c

    Specify the name of the configuration.

    ---vs|-s

    Specify the name of the virtual server.

Operands

    propertyname=value

    Specify the name and value of the property that you want to edit.

Examples


    wadm set-virtual-server-prop --user=admin
    --password-file=../admin.passwd --host=serverhost --port=8989 
    --ssl=true --no-prompt --rcfile=null  --config=config1 --vs=vs 
    enabled=true host=serverhost default-object-name=default 
    document-root=../docs http-listener-name=config1_ls
    

Exit Status

    The following exit values are returned:

    0

    command executed successfully

    >0

    error in executing the command

See Also

SJS Web Server Last Revised March 2007

NAME | Synopsis | Description | Options | Operands | Examples | Exit Status | See Also