Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

you don't have to use mod_jk, just use a mod_proxy to do the work. just place this in your apache configuration:

<Location /node1>
   ProxyPass http://<jboss_server_name>:8080/
   ProxyPassReverse http://<jboss_server_name>:8080/

<Location /node2>
   ProxyPass http://<jboss_server_name>:8180/
   ProxyPassReverse http://<jboss_server_name>:8180/


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.

share|improve this answer
Thanks for the response.I have tested it, and it seems to work, though there are a few problems with page rendering and links.Below are the additional things that I have configured apart from the ones you suggested: ProxyHTMLURLMap / /node1/ ProxyHTMLURLMap /node1 /node1 ProxyHTMLEnable On ProxyHTMLExtended On SetOutputFilter proxy-html Since the setup will be used by testers for the live testing of newly developed java codes,I am hesitant to use this method.Would welcome any other suggestions if any.Thanks again. – Nagaraj Feb 15 '10 at 13:47

I was able to meet my requirement using mod_jk, by following this excellent article at

Though written for apache/tomcat,it provided enough info for me to get going, and apply it successfully in my environment.


share|improve this answer
I don't like the fact that the article makes it easy by skipping the Apache load balancer config by using non-balanced domain names. too easy, and not the best way of doing it. – djangofan May 9 '11 at 21:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.