httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saqib.N....@seagate.com
Subject [users@httpd] Redirection based on client IP address
Date Wed, 06 Nov 2002 18:45:13 GMT
Hi All,

I am planning to use mod_rewrite for re-directing based on the client IP
address. However I would like to store the IP address mapping information
in a mySQL database. e.g.

if the IP address is             then re-direct to
219.213.*.*              http://www.ccc.de
145.178.*.*                                http://www.ccc.au
198.165.*.*                                http://www.ccc.ru

I read that mod_rewrite can access a external database to get direction
information. But I am not sure how to do it. If mySQL database is not
possible, even a flat file DB will suffice.

Any good URLs with this info?

Thanks
Saqib Ali


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message