httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincenzo D'Amore <>
Subject Re: [users@httpd] Rewrite problem
Date Tue, 18 Feb 2014 08:24:13 GMT

I'm not sure I got your problem, but you could try to modify the HTML before return it to
the user. There are at least a couple of module able to do it. I suggest take a look at mod
substitute or maybe mod proxy HTML. 


mobile: 3498513251

> On 18/feb/2014, at 01:05, Eggert Ehmke <> wrote:
> I took over a domain that was previosly hosted on anther server. The new web 
> portal works fine. We still need to access the old portal, which is accessible 
> via a nonstandard port like http://oldserver:8080. However, the old web portal 
> contains internal absolute links, which now of course point to the new portal. 
> So the old portal is broken.
> I tried to implement some rewrite rules to prevent the new server to accept 
> requests from the old server, but this does not seem to work. I tried:
>      RewriteCond %{REMOTE_ADDR} ^$
>      RewriteRule ^/(.*)$1 [P]
>      RewriteCond %{REMOTE_ADDR} !^$
>      RewriteRule ^/(.*) http://localhost:8090...
> ( represents the IP of the old server). So if the request comes 
> from the old server, send it back. If not, process the process local.
> The problem is that REMOTE_ADDR does not match the IP of the other server. 
> There might be a proxy between. 
> Is there a solution, or did I shoot into my knee?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message