Re: help for rewriterule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 11, 2009 at 7:29 AM, SG0101<shrikant0101@xxxxxxxxx> 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@xxxxxxxxx
krist@xxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux