Hi all,
just another mod_rewrite question i guess ... well here we go:
We have an application-server (with integrated web-server) running in
our intranet. Further we have an Linux box running with Apache 1.3.20
and PHP4 as our webserver both for intra and extranet use.
As the intranet web-server doesnt support PHP, but we would like to
use PHP anyways in some of the pages provided by the
application-server, we're looking for a solution doing this:
any request (including all data - post, cookie-data etc..) that comes
from a client (Mozilla, IE ...) e.g.
http://www.our.webserver.com/intranet/$1 should be "forwarded" to
http://our.intranet.server.com/$1.
the pages delivered by our.intranet.server.com should be passed back
through
www.our.webserver.com out to the client. on the way through
www.our.webserver.com the apache should process any php-tags in the
page, so the client get's the dynamic output.
i hope you understand what i was trying to say, and you can help me.
thanx a lot in advance.
dominik
PS i tried this in the virtual-host definition of httpd.conf, but it
somehow doesn't work as desired.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule /intranet(.*)
http://our.intranet.server.com$1
[T=application/x-httpd-php,P,NE,PT]
</IfModule>