Is there a way to forward or force a specific page based on source IP address (or multiple IP addre

For example:

IF (source IP address IN list of IP addresses) redirect to somepage.php.

On Tue, Oct 20, 2009 at 01:03:53PM -0400, Ilan B. wrote:

For example:

IF (source IP address IN list of IP addresses) redirect to somepage.php.

http {

geo $someone {
default 0;
192.168.1.1 1;
192.168.2.0 1;

}

server {

   if ($someone) {
       rewrite  ^   /someone.php  last;
   }

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs