Hi,
I have configured my Apache web server to use mod_jk and front my application server (Jboss), running on port 8080.
So users access http:// mymachine.mydomain.com (port 80 by default) but the request is served by Jboss running on port 8080.
I have 2 Jboss app servers but a single Apache server
I know by using mod_jk & wroker.properties & the related works, the incoming load of requests can be balanced between the 2 JBoss servers.
But my intention is different. (it is not load balancing) and today, I came to know about mod_SetEnvIf.
Is it possible to combine mod_SetEnvIf & mod_jk ?
If not combine use mod_SetEnvIf instead of mod_jk to control how Apache delegates the request further to be serviced.
Using mod_SetEnvIf, I think I can check the Remote_Addr of the incoming client requests;
- if it is from a particular set of IP's (say 10.1.5.*), I want it so delegated so as to be be served by Jboss-One
- and if coming from another set (say 10.1.7.*) it should be served by Jboss-Two.
JBoss-One is a DEV server and Jboss-TWO is QA server (running my application released to QA)
This is so because my single Apache server is hosted and publicly listed on the internet/ WWW (which is prerequisite of one of the features in my application)....(and do not have the budget to put up register a new domain for QA)
I have posted similar (but maybe with lesser detail) queries on ApacheLounge but have received no replies.
[
apachelounge.com...]
Today I read about mod_SetEnvIf on this forum so posting my query here as well.
~G1
alias Jeevan