Forum Moderators: phranque

Message Too Old, No Replies

Redirect

Redirect from on server to another

         

jsturm

8:20 am on May 28, 2005 (gmt 0)

10+ Year Member



Hi all

My problem is in short:
I want to redirect [intranet.foobar.com...] to 192.168.0.96/var/www/intranet/index.html resp. [192.168.0.96...]

Now the log version *g*
I have a web server (www.foobar.com) running in the DMZ. (IP 192.168.0.95)
Additionally I run an intranet. (IP 10.20.30.40). I put a second NIC on this Server and put it in the DMZ as well (192.168.0.96) (but I don’t like the idea.)

The intranet starts with index.php for internal user. In addition I have an index.html on this machine running, which opens a Login and asks an User database. After success, it opens the index.php and displays the intranet. (That part is working!)

Now I want to call my Intranet by [foobar.com...] or better [intranet.foobar.com...]

(It should redirect to [192.168.0.96...] and not [192.168.0.96...] which is actually [192.168.0.96...]

I tried with:
Redirect /intranet/ [192.168.0.96...]
Redirect /intranet/ [192.168.0.96...]
Proxypass /intranet/ [192.168.0.96...]

Has anybody a solution?

Greetings from Potsdam
Achim

jdMorgan

6:12 pm on May 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Achim,

Welcome to WebmasterWorld!

If you wish to make resources on the intranet available to the internet, then you can't use a redirect -- The unroutable local ip addresses (192.168.x.x) will either not resolve for internet users, or will resolve to local IP addresses in their intranets. (Remember that a Redirect involves the client browser, which must then ask for the resource at the address given in the redirect response.)

I suggest you look into Apache mod_proxy [httpd.apache.org] if you wish to pass some or all requests from the internet to machines "behind" your main server.

Jim

jsturm

9:52 pm on May 28, 2005 (gmt 0)

10+ Year Member



I tried already with ProxyPass.
I enabled mod_proxy in httpd.conf and put Proxypass /intranet/ [192.168.0.96...] at the end. I could mot see any reaction/logs.

Can you please point me to a solution

Achim