AJP (Apache JServ protocol ) is a communications protocol developed by apache.org to facilitate integration of the Tomcat web container with third party web servers. Web server specific AJP plugins have been developed for Apache, IIS and iPlanet.nsapi_redirector.so Plugin developed to integrate the Tomcat server with iPlanet webserver.
How to Integrate the Tomcat server with iPlanet ?
- Load the nsapi_redirector.so plugin and worker.properties in magnus.conf file
Init fn="load-modules" funcs="jk_init,jk_service" shlib="/opt/iplanet//lib/nsapi_redirector.so"
Init fn="jk_init" worker_file="/opt/iplanet/worker.properties" log_level="debug" log_file="/opt/iplanet/nsapi.log"
- Create the Worker Properties file
/opt/iplanet/worker.properties
------------------------------------------------
# List of workers for handling incoming requests
worker.list=Worker1
worker.Worker1.host=Tomcat-Host-name.com
worker.Worker1.port=8009
worker.Worker1.type=ajp13
worker.Worker1.cachesize=100
worker.Worker1.lbfactor=1
- Add NameTran function in obj.conf file
NameTrans fn="assign-name" from="/Tomcat-app/*" name="Tomcat-app"
<Object name="Tomcat-app">
Service fn="jk_service" worker="Worker1"
</Object>
Note: If you have custom Custom-obj.conf file (Virtual servers) and has client configuration your Reverse proxy configuration is as below.
Custom-obj.conf
-----------------------------------------------------
<Object name="default">
<Client urlhost="example-server.com">
NameTrans fn="assign-name" from="/Tomcat-app/*" name="Tomcat-app"
</Client>
</Object>
<Object name="Tomcat-app">
Service fn="jk_service" worker="Worker1"
</Object>
<Object name="Tomcat-app">
Service fn="jk_service" worker="Worker1"
</Object>
Note: If you have custom Custom-obj.conf file (Virtual servers) and has client configuration your Reverse proxy configuration is as below.
Custom-obj.conf
-----------------------------------------------------
<Object name="default">
<Client urlhost="example-server.com">
NameTrans fn="assign-name" from="/Tomcat-app/*" name="Tomcat-app"
</Client>
</Object>
<Object name="Tomcat-app">
Service fn="jk_service" worker="Worker1"
</Object>
No comments:
Post a Comment