Apache configuration: choose a site to display according to visitor's IP address
- by user64294
Hi all.
I would like to set a special configuration in our apache web server.
I would like to display sites to the users according their IP addresses.
We plan to upgrade our web sites. During the upgrade we'll put a maintenance site: so all the users which will connect to our web sites will get this site.
but in order to test the upgrade i need to set apache to let only my IP address to access to asked site.
If my IP address is a.b.c.d and if i ask for test_dot_com i want to see it.
but all other users, having a different IP address, should get the maintenane site even if they look for test_dot_com.
Is there a way to do this?
PS: sorry As i'm a new user i can't use more than one link. so test_dot_com = test.com
Thank you.