users@glassfish.java.net

Re: Problems with listeners, hosts and multihoming

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Jun 2008 14:25:07 PDT

It might be easier to front-end your servers with the tomcat connector (mod_jk) and just route the requests to the needed AJP port based on the requested DNS / URI.

This way you don't even need to add virtual ip's to your interface.

ie your workers.properties would look like:

     worker.lvov1.port=8009
     worker.lvov1.host=lvov.ips
     worker.lvov1.type=ajp13
     worker.lvov1.lbfactor=1
     worker.lvov1.cachesize=200

     worker.lvov2.port=18009
     worker.lvov2.host=lvov.ips
     worker.lvov2.type=ajp13
     worker.lvov2.lbfactor=1
     worker.lvov2.cachesize=200

     worker.lvov3.port=28009
     worker.lvov3.host=lvov.ips
     worker.lvov3.type=ajp13
     worker.lvov3.lbfactor=1
     worker.lvov3.cachesize=200

     worker.list=lvov1,lvov2,lvov3


--- uri.properties ---

/lvov1.ips/*=lvov1
/lvov2.ips/*=lvov2
/lvov3.ips/*=lvov3

And then just add the dns lvov1,2,3 to all point to lvov.ips
[Message sent by forum member 'areplogle' (areplogle)]

http://forums.java.net/jive/thread.jspa?messageID=283470