httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] help for rewriterule
Date Tue, 11 Aug 2009 06:08:49 GMT
On Tue, Aug 11, 2009 at 7:29 AM, SG0101<shrikant0101@gmail.com> wrote:
> Thanks Igor for your reply. But what one can do when his web content located
> on distributed system within network and have only one domain(external IP)
> ?  I think Rewrite rule can be useful here. Any comments?
>
A Rewrite Rule will modify a request once it arrives on the target
server. It can not in any way help you if you can't reach that target
server in the first place.

The only way you could do this, if you have some sort of
proxy/forwarder on your network border. There you could indeed rewrite
requests for particular URLs so that they are forwarded to machines
inside your network. Is that what you want?

If indeed myofficedomain.com is a border server, and you can modify
it's config you could add the rule:
RewriteEngine on
ReWriteRule ^/category/(.*)  http://192.168.100.10/category/$1 [P]

Notice the [P]. You need to (reverse) proxy the content, as you can't
expose the host to the outside network (it has an IP that is not
publicly routable).

HTH,

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message