Subscribe

About Me

is having around 10+ years of experience in IT. He worked as BEA consultant at one of the largest banks in USA. He primarily involved in enterprise portal applications architecture, design and development using weblogic portal frameworks. At present, he works as an Architect with one of the leading IT services companies in US.

Subscribe To

Followers

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:

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 <IfModule> tag with location combination it did not work for me. But when I use <Location> tag for each app/instance in httpd.conf, it worked. Hope this information helps.

7 comments:

Thanks for the solution, even I'm having the same setup. But, we are running 4 weblogic instances on the same machine and we need to call these instances through reverse proxy (apache).HTTPS ---> Apache ---> HTTP ---> WLAny idea on how to implement this.Apache : 2.2.3WL : 9.2 MP3