Require localAvec Apache 2.2
Order Deny,Allow Deny from all Allow from localhost ::1 127.0.0.1
<ifDefine APACHE24> Require local </ifDefine> <ifDefine !APACHE24> Order Deny,Allow Deny from all Allow from localhost ::1 127.0.0.1 </ifDefine>
Include conf/extra/httpd-vhosts.confRemplir le fichier C:\wamp\bin\apache\apache2.2.22\conf\extra\httpd-vhosts.conf avec :
# # Virtual Hosts # NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot C:/wamp/www <Directory "C:/wamp/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from localhost ::1 127.0.0.1 </Directory> </VirtualHost> <VirtualHost *:80> ServerName monsite DocumentRoot D:/www/monsite <Directory "D:/www/monsite/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from localhost ::1 127.0.0.1 </Directory> </VirtualHost>Modifier le fichier windows/system32/drivers/etc/hosts pour y mettre :
127.0.0.1 localhost monsite ::1 localhost monsite> car c'est beaucoup trop de manips, et pour moi pas très clair, pour définir un simple chemin d'accès.