<VirtualHost *:80> ServerName blog1.fr DocumentRoot C:/wamp/www/blog1 <Directory "C:/wamp/www/blog1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Require local Requipe ip 192.168.10 </Directory> </VirtualHost>Bien sûr, vous remplacez 192.168.10.x par les ip (Éventuellement abrégées) des PC du réseau)
Require local Requipe ip 192.168.10par
Require all grantedmais alors, le site est accessible à tout le monde.
<VirtualHost *:80> ServerName localhost DocumentRoot J:/wamp/www <Directory "J:/wamp/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Require all denied </Directory> </VirtualHost> <VirtualHost *:80> ServerName aviatechno DocumentRoot G:/www/aviatechno <Directory "G:/www/aviatechno/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Require local </Directory> </VirtualHost>Et je peux vous assurer qu'avec cette configuration l'accès à localhost m'est interdit alors que j'accède sans problème à aviatechno. Et, ce n'est pas dû au fait que aviatechno n'est pas dans l'arborescence de localhost, puisque avec :
<VirtualHost *:80> ServerName localhost DocumentRoot J:/wamp/www <Directory "J:/wamp/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Require all denied </Directory> </VirtualHost> <VirtualHost *:80> ServerName aviatechno DocumentRoot J:/wamp/www/aviatechno <Directory "J:/wamp/www/aviatechno/"> AllowOverride all Require local </Directory> </VirtualHost>Je n'ai toujours pas accès à localhost, mais je peux accéder à aviatechno.
<Directory /> AllowOverride none Require all denied </Directory>et
# onlineoffline tag - don't remove Require all denied </Directory>
*** hosts *** 127.0.0.1 localhost blog1.fr www.blog1.fr blog2.fr www.blog2.fr ::1 localhost blog1.fr www.blog1.fr blog2.fr www.blog2.frNote : pas plus de 8 domaines par ligne