You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by li...@dominok.net on 2006/04/28 13:04:35 UTC

[users@httpd] forward/mirror Site from different net

Hi List,

I guess this has been asked before but unfortunately I'm not able to find the Info in the archives. Googling resultet in thousands of hits, none of which help me with my problem.

What i'm trying to do is to set up an apache 1.3.23 (running on host 192.168.0.200) to mirror/forward a site from host 10.0.0.210 to the 192.168-net. (And later via ppp to the internet.)
So, typing in (e.g.) 192.168.0.200/away (or later $IP_my_ISP_gives_to_me/away) into the browser should result in apache displaying the 10.0.0.210-Site as 192.168.0.200/away.

I've looked at mod_rewrite and mod_proxy intensivly for about a week now but without success.

Last thing i tried before banging my head against the wall was something like that:

RewriteEngine On
RewriteRule     ^/away/(.*)$     http://10.0.0.210/$ [P]

I'm stuck. Any hints or links?


Cheers

Michael

---------------------------------------------------------------------
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


Re: [users@httpd] forward/mirror Site from different net

Posted by Michael Dominok <li...@dominok.net>.
On Fri, 2006-04-28 at 21:13 +0200, Krist van Besien wrote: 
> On 4/28/06, lists@dominok.net <li...@dominok.net> wrote:
> > RewriteEngine On
> > RewriteRule     ^/away/(.*)$     http://10.0.0.210/$ [P]
> 
> You probably want:
> RewriteRule     ^/away/(.*)$     http://10.0.0.210/$1 [P]

Ahm, yes. Thanks, that seems to work. 
I'm feeling a bit silly having missed the 1. 8-(

Anyway, I noticed that this works well for (mirrored) sites that use
relativ path-names (link in index.html to index2.html) but fails when
absolute path-names (link in index.html to /index2.html) are used. Any
trick how to avoid this?

Cheers

Michael



---------------------------------------------------------------------
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


Re: [users@httpd] forward/mirror Site from different net

Posted by Krist van Besien <kr...@gmail.com>.
On 4/28/06, lists@dominok.net <li...@dominok.net> wrote:
> Hi List,
>
> I guess this has been asked before but unfortunately I'm not able to find the Info in the archives. Googling resultet in thousands of hits, none of which help me with my problem.
>
> What i'm trying to do is to set up an apache 1.3.23 (running on host 192.168.0.200) to mirror/forward a site from host 10.0.0.210 to the 192.168-net. (And later via ppp to the internet.)
> So, typing in (e.g.) 192.168.0.200/away (or later $IP_my_ISP_gives_to_me/away) into the browser should result in apache displaying the 10.0.0.210-Site as 192.168.0.200/away.
>
> I've looked at mod_rewrite and mod_proxy intensivly for about a week now but without success.
>
> Last thing i tried before banging my head against the wall was something like that:
>
> RewriteEngine On
> RewriteRule     ^/away/(.*)$     http://10.0.0.210/$ [P]

You probably want:
RewriteRule     ^/away/(.*)$     http://10.0.0.210/$1 [P]


Krist
--
krist.vanbesien@gmail.com
Solothurn, Switzerland

---------------------------------------------------------------------
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


Re: [users@httpd] forward/mirror Site from different net

Posted by Michael Dominok <li...@dominok.net>.
On Fri, 2006-04-28 at 14:27 -0400, Joshua Slive wrote:
> ProxyPass /away http://10.0.0.210/
> ProxyPassReverse /away http://10.0.0.210/
Great. Thanks. This works, too.

> But 1.3.23 is ancient, so all bets are off.  Try 2.2.
Unfortunately I can't.
The "relaying" Apache is running on an embedded device for which a
- somewhat customizable - package (v1.3.23) is provided. It replaced thttp - which can't proxy or rewrite - and
is, on its own, nearly the same size as the rest of the system together.

I guess v2.2 would be even bigger. In addition to that I'm unsure if I
could get it customized to the device (in a reasonable amount of time). 
  
Cheers

Michael



---------------------------------------------------------------------
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


Re: [users@httpd] forward/mirror Site from different net

Posted by Joshua Slive <jo...@slive.ca>.
On 4/28/06, lists@dominok.net <li...@dominok.net> wrote:
> Hi List,
>
> I guess this has been asked before but unfortunately I'm not able to find the Info in the archives. Googling resultet in thousands of hits, none of which help me with my problem.
>
> What i'm trying to do is to set up an apache 1.3.23 (running on host 192.168.0.200) to mirror/forward a site from host 10.0.0.210 to the 192.168-net. (And later via ppp to the internet.)
> So, typing in (e.g.) 192.168.0.200/away (or later $IP_my_ISP_gives_to_me/away) into the browser should result in apache displaying the 10.0.0.210-Site as 192.168.0.200/away.
>
> I've looked at mod_rewrite and mod_proxy intensivly for about a week now but without success.
>
> Last thing i tried before banging my head against the wall was something like that:
>
> RewriteEngine On
> RewriteRule     ^/away/(.*)$     http://10.0.0.210/$ [P]
>
> I'm stuck. Any hints or links?

ProxyPass /away http://10.0.0.210/
ProxyPassReverse /away http://10.0.0.210/

But 1.3.23 is ancient, so all bets are off.  Try 2.2.

Joshua.

---------------------------------------------------------------------
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