Re: [users@httpd] Doing redirects based on client address

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

 



On 1/6/06, Rob Tanner <rtanner@xxxxxxxxxxxx> wrote:
> Hi,
>
> I'm try to figure out how to do a redirect based on the client's IP
> address but a search for examples has turned up nothing.
>
> Basically, I have two campuses, A and B, connected by a WAN link.  Our
> concern is service pack updates because they're huge and the link is
> small.  Therefore, if someone on campus A tries to download the link
> from the server on campus B, I want them to be redirected to campus A's
> server, and vice versa for clients on campus B.
>
> Does anyone have any configuration examples?

See "Redirect Homedirs For Foreigners" under
http://httpd.apache.org/docs/2.2/misc/rewriteguide.html
You'll probably want to replace %{REMOTE_HOST} with %{REMOTE_ADDR}.

Joshua.

[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