logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How do i acheive this
Author
rajibbc



Joined: 10 Jul 2009
Posts: 3

PostPosted: Tue 14 Jul '09 4:41    Post subject: How do i acheive this Reply with quote

I have an intranet application.
The application servers are distributed and there are 25 of them.

We have two domains 97.X.X.X and 10.X.X.X.

Communication between 97.X and 10.X is achievable via a proxy.
We have set up an Apache server on an windows box which is doing all the redirecting.

==========
With these backdrops what i want to acheive is the following.

1.User types the proxy url on the browser and depending on the name .. the proxy route it to corresponding application server.
-----This is already acheived using the following in the http.conf file
RedirectMatch /krnt2$ http://10.184.105.188:4002/huaweigsm_data/view
RedirectMatch /krnt2/analysis(.*) http://10.184.105.188:4002/huaweigsm_data/analysis$1


This ensures when user types http://97.253.7.230:8080/krnt2 the application server is hit at http://10.184.105.188:4002/huaweigsm_data/view and every thing goes smooth.

2. With the above in picture.. the requirements are

a> that the browser url in this process changes to http://10.184.105.188:4002/huaweigsm_data/view .. which is not desired .. I want to have http://97.253.7.230:8080/krnt2.. in the browser url .

b>Since users in 10.X can directly reach the application server at http://10.184.105.188:4002/huaweigsm_data/view.. what i want is depending upon the IP of the user if the url change in the browser can be directed .


I am a newbie .. I have the apress book of mod_rewrite with me.

Any insight onto it will be highly appreciated.

Cheers /Rajib
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Tue 14 Jul '09 8:08    Post subject: Reply with quote

sound like you need reverse proxy.

Search this site for "reverse proxy" or google it.
Back to top
rajibbc



Joined: 10 Jul 2009
Posts: 3

PostPosted: Tue 14 Jul '09 13:00    Post subject: Reply with quote

Thanks for the reply..

I have read through reverse proxy...

I also felt proxypassreverse may solve ny case of url in browser..

But could't solve it though...

need some handholding...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 14 Jul '09 16:15    Post subject: Reply with quote

Please post what you tried with reverse proxy.
Back to top
rajibbc



Joined: 10 Jul 2009
Posts: 3

PostPosted: Thu 16 Jul '09 9:52    Post subject: Reply with quote

my conf file now looks this way
with the proxypassreverse dierctive added
*
*
*

RewriteEngine On

RedirectMatch /krnt2$ http://10.184.105.188:4002/huaweigsm_data/view
RedirectMatch /krnt2/analysis(.*) http://10.184.105.188:4002/huaweigsm_data/analysis$1

ProxyPassReverse /krnt2/ http://10.184.105.188:4002/huaweigsm_data/
*
*
*
======
Still my url in broswer window shows http://10.184.105.188:4002/huaweigsm_data/view

but i expect http://97.253.7.230:8080//krnt2

.....

any lead.. will be highly appreciated

BR/rajib
Back to top


Reply to topic   Topic: How do i acheive this View previous topic :: View next topic
Post new topic   Forum Index -> Apache