Virtual server by ip (apache)

Hello,
currently, i've that in my httpd.conf :

<VirtualHost _default_>
ServerName xxx.xxx.xxx.xxx
VirtualDocumentRoot /home/www/%1+
</VirtualHost>

what enable me to access to the directory /home/www/typedWebAdress

I would like to some users (regarding their ip) be redirected on another directory.
for an exemple, i would like users having an ip beginning with 212.56.21. or by 242.21.25. having a view of the directory /home/www/mydomain.com (<-- just without the "www.") when they type www.mydomain.com on their browser (instead of viewing /home/www/www.mydomain.com), the other users would have a normal view of /home/www/www.mydomain.com

i don't want to use a Location: ... because i don't want the users viewing the real directory they are.

thanks for your help Virtual server by ip (apache)

 

 

 

 

Top