Tuesday, November 23, 2010

Webserver and plugin work

a explanation of how does a Webserver and plugin work is

Within a http.conf file contains the location of the plugin-cfg.xml file and the plugin modules so when the request comes to the http.conf it will get redirected to the plugin file which will then route to the appropriate app server

so a http.conf file can contain only ONE pluging.xml file

so to answer your question i think it will not work , as the webserver will not be in a position to know which plugin-cfg.xml file should it forward the request

but you can configure 4 webservers to 4 plugins though

---------------------------------


Q2.similarly i have 4-web server and one plugin .in which web server is ready to handled the request out of four web server?


This could be possible if the 4 webservers are in the same machine .
you can modify the path of the plugin.xml file in each of the http.conf file to point to the same plugin file.

but you would need to do this before
1) Ensure that each of the webservers will be running on different ports
2) You will have to create a virtual host with those ports in the admin console
3) Generate and propagate the plugin
4) Modify the path of the plugin.xml in each http.conf file to the same location
5) restart each IHS

Test it using the individual urls for eg
http://<ipaddresss:port1/contextroot
http://<ipaddresss:port2/contextroot
http://<ipaddresss:port3/contextroot

If this for test practice its fine .. if its for implementation you also need to ensure that the loadbalancer is configured to route these ports

request ----- Load Balancer ------------- Ipaddress:port1
------------- Ipaddress:port2


Do correct me if i have understood it wrongly

No comments:

Post a Comment