Use with WLST: Online
Description
The ohs_createInstance
command creates a new instance of Oracle HTTP Server, allowing critical configuration such as listening ports to be specified explicitly or assigned automatically.
Syntax
ohs_createInstance(instanceName='xxx', machine='yyy', serverName='zzz', ...)
Argument | Definition |
---|---|
instanceName |
The name of the managed instance being created. |
machine |
The existing machine entry for the instance. This name (often serverConfig() cd('Machines') ls() |
listenPort |
(Optional) The port number of the non-SSL server. If this value is not specified, a port is automatically assigned. Listen ports typically begin at 7777 and go up from there. |
sslPort |
(Optional) The port number of the SSL virtual host. If this value is not specified, a port is automatically assigned. SSL ports typically start at 4443 and go up from there. |
adminPort |
(Optional) The port number used for communication with Node Manager. If this value is not specified, a port is automatically assigned. Administration ports typically begin at 9999 and go up from there. |
serverName |
(Optional) The value of the ServerName directive of the non-SSL server. If this value is not specified, the host name of the machine and the listen port will be used to construct the value. |
Example
The following example creates an Oracle HTTP Server instance called ohs1
that runs on the machine abc03.myCorp.com
:
ohs_createInstance(instanceName='ohs1', machine='abc03.myCorp.com')