Can rewrite change hostname without sending redirect to browser?

Can rewrite change hostname without sending redirect to browser?

am 03.04.2008 15:37:02 von ohaya

Hi,

I haven't worked very much with mod_rewrite, but I think it might solve
a problem that we're having, but I'm unclear as to whether if we use a
rewrite rule to rewrite the hostname if that always causes an actual
redirect (30x) response to go to users' browsers.

The situation is that we have Apache configured as a proxy for another
server (WebLogic).

Both Apache and WebLogic are running on the same server, and the DNS
hostname for the server is xxx.yyy.zzz, and users access applications on
WebLogic using URLs like:

http://xxx.yyy.zzz/whatever...

For some technical reasons, we need to have the Apache proxy to the
hostname aaa.xxx.yyy.zzz, which is the same IP as xxx.yyy.zzz, instead
of to xxx.yyy.zzz, but we need to do this in such a way that it doesn't
cause an actual redirect (30x) response with a URL with the
aaa.xxx.yyy.zzz hostname to go to users' browsers.

In case you're wondering, the reason I'm trying to do this is that we
have a need for the WebLogic to "think" that a request to it is coming
in with a URL with the aaa.xxx.yyy.zzz hostname, but the aaa.xxx.yyy.zzz
hostname is not in our DNS.

As I mentioned above, I haven't worked much with mod_rewrite, and maybe
it just already does this without causing redirects to go to the
browser, but I just wanted to check here before I go off on this tangent.

Thanks in advance,
Jim

Re: Can rewrite change hostname without sending redirect to browser?

am 03.04.2008 20:51:45 von unknown

Post removed (X-No-Archive: yes)