Configure IBM HTTP Server with WebSphere Application Server
The IBM HTTP Server archive installation is primarily targeted for Liberty, but we can use it with WebSphere Application Server.
Before you begin
See Install and configure IBM HTTP Server from an archive to install IBM HTTP Server.Procedure
- If you installed IBM HTTP Server on an unmanaged node, you must configure and start the
IBM HTTP Server admin server. The user and group that are specified in the following
substep are an operating system user and group. Typically, the same unprivileged
ID is specified for User and Group in
conf/httpd.conf.
- Run the following command to change to the root IHS directory:
cd /path/to/IHS
- Run the following command to configure conf/admin.conf:
bin/postinst -i $PWD -t setupadm -v ADMINPORT=8008 -v SETUPADMUSER=nobody -v SETUPADMGROUP=nobody
- Run the following command to configure the HTTP basic authentication user and
password:
bin/htpasswd -c conf/admin.passwd ihsadmin
The username that is specified in the previous sub step can be any value and is shared between conf/admin.passwd and the WebSphere Application Server webserver definition.
The userid is not related to any operating system user id. If you require SSL, establish SSL trust by creating SSL keystores and adding the issuers of your application servers trust chain.
- Run the following command to enable the admin console to
propagate the Plug-in configuration file:
bin/setupadm -usr nobody -grp nogroup -cfg conf/httpd.conf -plg plugin/config/webserver1/plugin-cfg.xml -adm conf/admin.conf
- Run the following command: bin/adminctl start.
- Run the following command:
bin\httpd.exe -k install -n IHSADMIN -f conf/admin.conf bin\httpd.exe -k start -n IHSADMIN
- Run the following command to change to the root IHS directory:
- Create the webserver definition in WebSphere Application Server.
- If IBM HTTP Server is not installed on a managed node, create an unmanaged node.
- Create a server of type WebServer on the appropriate node. When prompted for the plug-in installation root, supply the IBM HTTP Server root with plugin appended to it.
- Propagate configuration from the application server to the webserver.
- From the Servers > Web Servers view, generate and propagate the WebSphere Application Server plug-in configuration.
- Configure or disable SSL.
- If you do not require SSL between the WebSphere Application Server WebServer Plug-in
and the application server, append the following snippet to conf/httpd.conf to
offload SSL to IBM HTTP Server:
SetEnv ssl-map-mode offload
- Click Copy to WebServer keystore directory to establish trust between on the Plugin Properties tab of the new WebServer server.
- If you do not require SSL between the WebSphere Application Server WebServer Plug-in
and the application server, append the following snippet to conf/httpd.conf to
offload SSL to IBM HTTP Server:
- Restart the IBM HTTP Server.
- Run bin/apachectl restart to restart the server.
- Run bin\httpd.exe -k restart to restart the server.