httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <>
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<> 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 is a border server, and you can modify
it's config you could add the rule:
RewriteEngine on
ReWriteRule ^/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).



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:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message