Forum Moderators: phranque

Message Too Old, No Replies

Redirection :confused in mod rewrite, virtual host

         

newbie09

10:33 am on Aug 6, 2008 (gmt 0)

10+ Year Member



Hello All,

I am new to this forum as well as new to web servers. It wil be very kind of you all if you help me solve my problem.

Kindly consider following scenario:
I have a local web server say X, other machines on the intra net can access the local server easily.
Now there is other server say server Y, which only server X can access (remote access through VPN).

I have to modify the local server X such that whenever a request is made for Server X, the request is automatically routed to server Y.

Main issue here is that
1. Both the servers, Server X and Server Y are on different networks (say different domains)
2. The machines on intra net of server X, off course cannot access server Y.

What change do I have to do to make server X forward the request to server Y internally.

I have gone though mod_rewrite, virtual hosts and mod_proxy details but could not decide which one will suitable for me..

Thanks in Advance.

jdMorgan

3:30 pm on Aug 6, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your requirements seem to indicate that a reverse proxy (see Apache mod_proxy) is what you are looking for.

Jim