Все очень просто. В .htaccess: (ессно, еще создается .htpasswd) 
   # Подставить нужый путь к .htpasswd и IP-адреса 
 # Allow/Deny access control (deny from these ips) 
 Order allow,deny 
 Deny from 1.2.3.4 5.6.7.8 
 Allow from all   
 # password access control 
 AuthUserFile c:\http\test\.htpasswd 
 AuthType basic 
 AuthName "Testing area" 
 Require valid-user   
 # allow access if either ip doesn't match or a user logs in 
 Satisfy any   
 # Проверено. Работает.  
lynx  
 А где сказано, что речь вообще идет о вирт. хостах 

 Единственное, что может понадобиться в httpd.conf - это включить .htaccess, но это отдельный вопрос! 
