April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Categories

April 2024
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  

Configure Apache with multiple weblogic server instances

Configure Apache with multiple weblogic server instances
I came across a unique situation at work where I needed to configure Apache web server to forward requests to multiple weblogic server instances running on same box but different port numbers. Here is the scenario:

Instance A – http://test_server:7001/App1(Domain I)
Instance B – http://test_server:7003/App2 (Domain II)
Instance C – http://test_server:7005/App3 (Domain III)

I have App1 deployed on instance1 which is running in domain I. Similarly App2 deployed on instance 2, app3 deployed on instance 3. Needless to say all domains running in different ports(non-clustered environment).

Now I would like to configure my Apache to forward request to respective URLs based on what do they type in the URL.

If they type http://test_server/App1 should go to instance A.
If they type http://test_server/App2 should go to instance B.
If they type http://test_server/App3 should go to instance C.

When I use tag with location combination it did not work for me. But when I use tag for each app/instance in httpd.conf, it worked. Hope this information helps.

#### for Instance 1/App1

SetHandler weblogic-handler
WebLogicHost test_server
WebLogicPort 7001
WLCookieName cookie1
DynamicServerList OFF
MaxPostSize 2048
Debug ALL
WLLogFile logs/httpd_proxy1.log

#### for Instance2/App2


SetHandler weblogic-handler
WebLogicHost test_server
WebLogicPort 7003
WLCookieName cookie2
DynamicServerList OFF
MaxPostSize 2048
Debug ALL
WLLogFile logs/httpd_proxy1.log

#### for Instance3/App3

SetHandler weblogic-handler
WebLogicHost test_server
WebLogicPort 7005
WLCookieName cookie3
DynamicServerList OFF
MaxPostSize 2048
Debug ALL
WLLogFile logs/httpd_proxy1.log

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>