Redirect depending on source ip address

This is a discussion on Redirect depending on source ip address within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi all. I'm looking for a solution to do something like this (cause of firewall restrictions): if a user ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-31-2003
Ste
 
Posts: n/a
Default Redirect depending on source ip address

Hi all.

I'm looking for a solution to do something like this (cause of firewall
restrictions):

if a user comes into a specific virtual server in my apache web server from
an ip 10.x.x.x it should be redirected to

www.mywebsite.it:8081

if it comes from an ip 192.168.168.x it should be redirected to
192.168.168.111

if it comes from everywere else it shoud be redirected to

www.mywebsite.it:8082

Is it possible?

Befor using linux i've had a iis win2k server and with a simple .asp page i
did it, but now it does not work and i don't want to use asp anymore

Tks

stefano



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0