Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: fronting with mod_jk and controling delegation of requests.. |
|
Author |
|
jnsunkersett
Joined: 30 Jan 2011 Posts: 23
|
Posted: Sun 30 Jan '11 10:21 Post subject: fronting with mod_jk and controling delegation of requests.. |
|
|
Hi,
I have successfully configured Apache web server to run on port 80 with SSL on port 443 to front JBoss app server on port 8080; using mod_jk and mod_ssl.
I have a urlworker.properties on the apache side and in the server xml on the jboss side, I have added the APJ connector and jvmRoute attribute to the Engine element to achieve the same.
In this setup, I can add more Jboss server (on different machines) and appropriate jvmRoute values to achieve load-balancing.
But I am NOT targetting load balancing!
I want to use this single Apache server to front a TWO Jboss servers,
one a DEV instance and another the QA instance.
the application runing on both Jboss servers is the same, but connects to appropriate DEV and QA databases.
What can be done, to control the route the traffic takes; aning could the requests coming into Apache, be delegated to the two Jboss servers, selectively ?
I want some requests originating
1. from some machine (which I call DEV machines) to be routed to the DEV Jboss server instance
2. and some requests originating from "designated QA machines" to be routed to the QA Jboss server instance.
Is this possible?
I want to do the above so that I can reuse the Apache server, SSL certificate and the publicly registered domain for both my DEV instances.
(as of now load balancing is not wanted)
Thank you
Jeevan
Beg your pardon: if I have posted in the wrong forum; This is my first post on the Apache Lounge. |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Tue 03 May '11 14:26 Post subject: |
|
|
you can use different vhosts or reverse proxy on different locations. |
|
Back to top |
|
|
|
|
|
|