I have 5 instances of JBoss configured and running on different ports (8080 to 8480),and each instance is assigned for a particular project team.I would like to configure it further so that users belonging to a project should be able to access their instance (node) just by typing the URL/node without mentioning the port number, like for example, http://localhost/node1 should take them to the first instance and so on.
I understand that mod_jk can be used to achieve this on a server with a single node.Would greatly appreciate if someone could help me out here.
Thanks,
Nagaraj
Best Answer
you don't have to use
mod_jk
, just use amod_proxy
to do the work. just place this in your apache configuration:this way all request to
/node1
will be forwarded to your first jboss instance, and/node2
will be forwarded to your second jboss instance, and so on.