Question & Answer
Question
The WebSphere Proxy Server creates a web server plug-in config file every time it is started or stopped. How can I configure the plug-in settings that will appear in the plugin-cfg.xml file created by WebSphere Proxy Server?
Answer
If you are using a web server (for example, IBM HTTP Server) and plug-in as a front-end for WebSphere Application Server like this:
Browser --> IBM HTTP Server/Plug-in --> WebSphere Application Server
Then, do not use the instructions in this technote. Instead you should refer to the following page in the Information Center, Web server plug-in properties.
If you are using a web server (for example, IBM HTTP Server) and plug-in as a front-end for WebSphere Proxy Server like this:
Browser --> IBM HTTP Server/Plug-in --> WebSphere Proxy Server --> WebSphere Application Server
Then yes, you should use the instructions in this technote. And also see this page in the Information Center, Routing requests from a plug-in to a proxy server.
When the plug-in is routing to a WebSphere Proxy Server, you need to use the plugin-cfg.xml file that is created by the WebSphere Proxy Server.
- Unmap the application modules from the web server, and enable them to use WebSphere Proxy Server instead, like this: Applications > Application Types > app_name > Manage Modules
- Select all of the modules and map them to only the application server or cluster where they run. If they are mapped to the web server (for example, webserver1), you will need to remap them so that they are no longer mapped to the web server.
- Click OK and Save.
- Click on the web_module_name > Web Module Proxy Configuration and check the Enable Proxy box. Click OK and Save.
- Enable plug-in generation within the WebSphere Proxy Server settings like this:
Servers > Server Types > WebSphere proxy servers > proxy_name > HTTP Proxy Server Settings > Proxy settings
- Locate the Generate Plug-in Configuration drop-down menu, and select Cell. Click OK and Save.
If you are using a cluster of WebSphere Proxy Servers you will find the Proxy Settings here instead:
Clusters > Proxy server clusters > cluster_name > HTTP Proxy Server Settings > Proxy settings
- Set the Generate Plug-in Configuration drop-down to Cell. Click OK and Save.
Now you should notice that every time the WebSphere Proxy Server is started or stopped it will create a plugin-cfg.xml file in the {WAS_ROOT}/profiles/profilename/etc directory. If you hand edit the settings in this file, it will just get overwritten the next time the WebSphere Proxy Server is stopped or started.
In order to make permanent changes to the plugin-cfg.xml file, created by WebSphere Proxy Server, you must configure them as JVM Custom Properties in the Process Definition of the WebSphere Proxy Server, like this: Servers > Server Types > WebSphere proxy servers > proxy_name > Java and Process Management > Process Definition > Java Virtual Machine > Custom properties
Here is a list of some of the plug-in related properties you can use:
Property | Description |
com.ibm.ws.odr.plugincfg.log.Name | full path and filename to use for Plug-in file |
com.ibm.ws.odr.plugincfg.log.LogLevel | LogLevel setting for Plug-in |
com.ibm.ws.odr.plugincfg.property.https.keyring | full path and filename for Plug-in keystore (for example, plugin-key.kdb) file |
com.ibm.ws.odr.plugincfg.property.https.stashfile | full path and filename for Plug-in stash (for example, plugin-key.sth) file |
For a more complete list of plug-in related custom properties, see these pages
- Controlling the generation of the plugin-cfg.xml file
- WebSphere Application Server v7.0 Custom Properties list
After adding the Custom Properties, click OK and Save. If using a Proxy Server Cluster, you will need to add the same custom properties in all of the WebSphere Proxy Servers in the Cluster.
Finally, stop / restart the WebSphere Proxy Server (or Proxy Cluster) and look for the newly created plugin-cfg.xml file in the {WAS_ROOT}/profiles/profile_name/etc directory. You need to manually copy this file to the appropriate directory on the web server system.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21470435