Configure HTTP transport

 


Configure an HTTP transport for a Web container

  1. Identify the appserver and assign it to the server variable.

    set server [$AdminConfig getid /Cell:cellname/Node:nodename/Server:servername/]
    

    Example output:

    servername(cells/cellname/nodes/nodename/servers/servername:server.xml#Server_1)
    

  2. Identify the Web container belonging to the server and assign it to the wc variable.

    set wc [$AdminConfig list WebContainer $server]
    

    Example output:

    (cells/cellname/nodes/nodename/servers/servername:server.xml#WebContainer_1)
    

  3. List all the transports belonging to the Web Container and assign it to the transports variable.

    set transportsAttr [$AdminConfig showAttribute $wc transports]
    set transports [lindex $transportsAttr 0]
    

    These commands return the transport objects from the transports attribute in a list format.

    Example output:

    (cells/cellname/nodes/nodename/servers/servername:server.xml#HTTPTransport_1) 
    (cells/cellname/nodes/nodename/servers/servername:server.xml#HTTPTransport_2)
    

  4. Identify the transport to be modified and assign it to the transport variable.

    set transport [lindex $transports 0]
    

    Example output:

    (cells/cellname/nodes/nodename/servers/servername:server.xml#HTTPTransport_1)
    

  5. Modify the address attribute to change the host and port.

    $AdminConfig modify $transport {{address {{host {myHost}} {port 9081}}}}
    

  6. Save changes:

    $AdminConfig save
    

Sample script: set_http_transport.jacl