5 Configuring Oracle HTTP Server in a Standalone Domain
For more information on other methods available for domain creation, see Additional Tools for Creating, Extending, and Managing WebLogic Domains in Creating WebLogic Domains Using the Configuration Wizard.
Note:
Perform the configuration steps in this section only if you have selected Standalone HTTP Server (Managed independently of WebLogic server) in the Installation Type screen. If you have selected Collocated HTTP Server (Managed through WebLogic server), see Configuring Oracle HTTP Server in a Collocated Domain.
For information about Oracle HTTP Server domain configuration options, see About Oracle HTTP Server.
The following sections step through the Configuration Wizard:
- Starting the Configuration Wizard
Start the Configuration Wizard to begin configuring a domain. - Navigating the Configuration Wizard Screens to Configure the Domain
Use the Configuration Wizard to configure Oracle HTTP Server in a standalone domain. - Starting the Instances
After configuration is complete, you can use tools to manage your domain.
Starting the Configuration Wizard
Start the Configuration Wizard to begin configuring a domain.
To start the Configuration Wizard:
Parent topic: Configuring Oracle HTTP Server in a Standalone Domain
Navigating the Configuration Wizard Screens to Configure the Domain
Use the Configuration Wizard to configure Oracle HTTP Server in a standalone domain.
Note:
When you are creating an Oracle HTTP Server instance for a new domain, verify that the ports you are assigning to your components are available. The Configuration Wizard does not perform automatic port allocation.
- Selecting the Domain Type and Domain Home Location
Use the Configuration Type screen to select a Domain home directory location, optimally outside the Oracle home directory. - Selecting the Configuration Template for Oracle HTTP Server
Use the Templates screen to select the template you require. - Specifying the Domain Mode and JDK
Use the Domain Mode and JDK screen to specify the domain mode and Java Development Kit (JDK). - Adding System Components
Use the System Components screen to specify details about the new Oracle HTTP Server instance. - Specifying the Oracle HTTP Server Details
Use the OHS Server screen to configure the Oracle HTTP Server instance in the domain. - Configuring Node Manager
Use the Node Manager screen to select the type of Node Manager you want to configure, along with the Node Manager credentials. - Reviewing Your Configuration Specifications and Configuring the Domain
The Configuration Summary screen shows detailed configuration information for the domain you are about to create.
Parent topic: Configuring Oracle HTTP Server in a Standalone Domain
Selecting the Domain Type and Domain Home Location
Use the Configuration Type screen to select a Domain home directory location, optimally outside the Oracle home directory.
To specify the Domain type and Domain home directory:
- On the Configuration Type screen, select Create a new domain.
- In the Domain Location field, specify your Domain home directory.
For more details about this screen, see Configuration Type in Creating WebLogic Domains Using the Configuration Wizard.
Selecting the Configuration Template for Oracle HTTP Server
Use the Templates screen to select the template you require.
On the Templates screen, make sure Create Domain Using Product Templates is selected, then select the following template:
Oracle HTTP Server (Standalone) - 12.2.1.4.0 [ohs]
Specifying the Domain Mode and JDK
Use the Domain Mode and JDK screen to specify the domain mode and Java Development Kit (JDK).
On the Domain Mode and JDK screen:
-
Select Production in the Domain Mode field.
-
Select the Oracle HotSpot JDK in the JDK field.
Adding System Components
Use the System Components screen to specify details about the new Oracle HTTP Server instance.
On the System Components screen:
-
Specify
ohs1
in the System Component field. -
Specify
OHS
in the Component Type field. -
Restart Interval Seconds: Specify the number of seconds to wait before attempting a restart if an application is not responding.
-
Restart Delay Seconds: Specify the number of seconds to wait between restart attempts.
Note:
You can rename the Oracle HTTP Server system component name (for example, ohs_1
), when you rerun the configuration wizard and select Update an existing domain in the Configuration Type screen. But when you do this, the original Oracle HTTP Server component name and all customized values, like port designation, gets deleted and a new system component with default values get created. So, avoid renaming the Oracle HTTP Server component, unless you want the default settings.
For more information about this screen, see System Components in Creating WebLogic Domains Using the Configuration Wizard.
Specifying the Oracle HTTP Server Details
Use the OHS Server screen to configure the Oracle HTTP Server instance in the domain.
In the Listen Address field, specify the IP address of the host on which the Oracle HTTP Server instance will reside. Do not use localhost
. See Specifying the Listen Address in Creating WebLogic Domains Using
the Configuration Wizard.
All of the remaining fields are pre-populated, but you can change the values as required. For example, verify that the default port numbers are not used by other services.
Note:
If you change the admin host from default IP address127.0.0.1
to any other IP address, you must
ensure the following:
- Set
ServerName
directive inadmin.conf
to the host name or domain name that maps to the IP address that you have chosen. - Create an SSL certificate with a common name matching the host
name or domain name set up using the
ServerName
directive.
For more information, see Configuring SSL for Admin Port in the OHS Admin Guide.
For more information about this screen, see OHS Server in Creating WebLogic Domains Using the Configuration Wizard .
Configuring Node Manager
Use the Node Manager screen to select the type of Node Manager you want to configure, along with the Node Manager credentials.
Select Per Domain Default Location as the Node Manager type, then specify Node Manager credentials.
For more information about this screen, see Node Manager in Creating WebLogic Domains Using the Configuration Wizard.
For more about Node Manager types, see Node Manager Overview in Administering Node Manager for Oracle WebLogic Server.
Reviewing Your Configuration Specifications and Configuring the Domain
The Configuration Summary screen shows detailed configuration information for the domain you are about to create.
Review each item on the screen and verify that the information is correct. To make any changes, go back to a screen by clicking the Back button or selecting the screen in the navigation pane. Domain creation does not start until you click Create.
For more details about options on this screen, see Configuration Summary in Creating WebLogic Domains Using the Configuration Wizard.
Starting the Instances
After configuration is complete, you can use tools to manage your domain.
-
For more information on additional tools you can use to manage your domain, see Overview of Oracle Fusion Middleware Administration Tools in Administering Oracle Fusion Middleware.
-
If you are attempting to create an Oracle HTTP Server instance that uses a TCP port in the reserved range (typically less than 1024), then you must perform some extra configuration to allow the server to bind to privileged ports. For more information, see Starting Oracle HTTP Server Instances on a Privileged Port (Unix Only) in Administering Oracle HTTP Server.
Parent topic: Configuring Oracle HTTP Server in a Standalone Domain
Starting Node Manager
-
-
(UNIX) Go to the
DOMAIN_HOME/bin
directory.setenv JAVA_HOME /home/Oracle/Java/jdk1.8.0_211
. -
(Windows) Go to the
DOMAIN_HOME\bin
directory.set JAVA_HOME=C:\home\Oracle\Java\jdk1.8.0_211
.
-
-
Enter the following command:
-
(UNIX) Using
nohup
andnm.out
as an example output file:nohup ./startNodeManager.sh >
LOG_DIR
/nm.out&where
LOG_DIR
is the location of directory in which you want to store the log files. -
(Windows)
startNodeManager.cmd
Note:
On Windows operating systems, Oracle recommends that you configure Node Manager to run as a startup service. This allows Node Manager to start up automatically each time the system is restarted.
See Running Node Manager as a Startup Service in Administering Node Manager for Oracle WebLogic Server.
-
Parent topic: Starting the Instances
Starting the Oracle HTTP Server Instance
To start the Oracle HTTP Server instance:
-
On UNIX
-
Go to the
DOMAIN_HOME
/bin
directory. -
Run the following command:
./startComponent.sh
system_component_name
where
system_component_name
is the Oracle HTTP Server system component name you provided while configuring the domain.For example:
./startComponent.sh ohs1
-
-
On Windows
-
Go to the
DOMAIN_HOME
\bin
directory. -
Run the following command:
startComponent.cmd
system_component_name
where
system_component_name
is the Oracle HTTP Server system component name you provided while configuring the domain.For example:
startComponent.cmd ohs1
-
See Starting Oracle HTTP Server Instances from the Command Line in Administering Oracle HTTP Server.
Parent topic: Starting the Instances
Missing Libraries Might Cause HTTPD to Exit Without Notice
On the Windows platform, Oracle HTTP Server requires certain Microsoft software to be installed in order to function properly.
-
Microsoft Visual C++ 2010 Feature Pack Redistributable Package (x64)
-
Microsoft Visual C++ 2012 Feature Pack Redistributable Package (x64)
-
Any other packages recommended by Microsoft
If Oracle HTTP Server fails to start and no error messages are logged by Oracle HTTP Server in the server error log or in Node Manager logs, follow this procedure to diagnose the problem: