Apache configuration: choose a site to display according to visitor's IP address

Posted by user64294 on Server Fault See other posts from Server Fault or by user64294
Published on 2010-12-21T11:13:15Z Indexed on 2010/12/21 11:55 UTC
Read the original article Hit count: 316

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about apache2

Related posts about ip