Web Servers on Unix and Linux - Problem with Redirecting silently some users

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > April 2006 > Problem with Redirecting silently some users





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem with Redirecting silently some users
peetez@gmail.com

2006-04-27, 7:24 am

Hello all,

I'm using Apache 2.0.55 over Tomcat 4.1.31 on a Linux box (RHES4).
Everything is fine with my application till now.

But I'm stuck with a problem of migrating part of my users silently to
another context regarding their "client" IP Address or computer name.
I've tried several things but I'm running out of fresh and working
ideas.

I've first thought of mounting 2 IP addresses (physical or logical) in
the same VLAN for the server, changing the Hosts file of the client,
with VirtualHosts and different RewriteRule for each. This worked
locally, but the server always answers to the default NIC when I try to
access the new one from a remote client

Then I tried to use <Location> with the same <VirtualHost> twice but
with differents Deny/Allow rules, this doesn't work at all

I want to redirect all trafic to http://my.server.com/myContext to
http://my.server.com/myOtherContext at least (preferably silently for
the browser) for a given number of HTTP Clients (known from their IP)

I also though of a redirect Valve in Tomcat looking for the IP of the
RemoteAddr param in the request, but I don't know how...

Does anyone have an idea ?

Best regards, and Thanks in advance for anyone helping me.

Cyril Z.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com