$_SERVER['SCRIPT_NAME'] $_SERVER['PHP_SELF'] $_SERVER['SCRIPT_FILENAME'] $_SERVER['DOCUMENT_ROOT'] $_SERVER['SERVER_NAME'] __FILE__soient gérées exactement de la même manière en local et en réel, ce qui n'est pas totalement le cas de la configuration Wamperver par défaut, principalement pour le fichier www/index.php.
127.0.0.1 localhost aviatechno phottello le-pointu.aviatechno--- Nota : Si vous utilisez une version d'Apache (A partir de 2.2.19) et un système qui supporte IPv6 (IP version 6) vous devez ajouter :
::1 localhost aviatechno phottello le-pointu.aviatechnoRemarque : Ne pas mettre le support localhost en IPv6 si votre version Apache ou votre système ne le supporte pas.
# Virtual hosts Include conf/extra/httpd-vhosts.conf
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
</Directory>
Pour Apache 2.4.x, le support Ipv6 est implicitement intégré par :# onlineoffline tag - don't remove
Require local
</Directory>#------- Début du fichier ---- # # Virtual Hosts # NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot G:/www ServerAdmin webmaster@monsite.net ErrorLog "J:/Wamp/logs/localhost_error.log" <Directory "G:/www/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Order Deny,Allow Deny from all Allow from localhost Allow from 127.0.0.1 </Directory> </VirtualHost> <VirtualHost *:80> ServerName aviatechno DocumentRoot G:/www/aviatechno ServerAdmin webmaster@monsite.net ErrorLog "J:/Wamp/logs/aviatechno_error.log" <Directory "G:/www/aviatechno/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from localhost Allow from 127.0.0.1 </Directory> </VirtualHost> <VirtualHost *:80> ServerName phottello DocumentRoot G:/www/phottello ServerAdmin webmaster@monsite.net ErrorLog "J:/Wamp/logs/phottello_error.log" <Directory "G:/www/phottello/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from localhost Allow from 127.0.0.1 </Directory> </VirtualHost> <VirtualHost *:80> ServerName le-pointu.aviatechno DocumentRoot G:/www/le.pointu ServerAdmin webmaster@monsite.net ErrorLog "J:/Wamp/logs/lepointu_error.log" <Directory "G:/www/le.pointu/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Deny from all Allow from localhost Allow from 127.0.0.1 </Directory> </VirtualHost>#------- Fin du fichier ----
Allow from localhost
Allow from 127.0.0.1
par Allow from localhost
Allow from ::1
Allow from fe80::/10
Allow from 127.0.0.1 Order Deny,Allow
Deny from all
Allow from localhost
Allow from 127.0.0.1
parRequire local
$projectContents .= '<li><a href="'.$file.'">'.$file.'</a></li>';par
$projectContents .= '<li><a href="h ttp://'.$file.'">'.$file.'</a></li>'; //[modif oto] http:// après href="
//[modif oto] - Teste si IPv6 est supporté par le système
if (extension_loaded('sockets')) {
//Create socket IPv6
$socket = socket_create(AF_INET6, SOCK_RAW, 1) ;
if($socket === false) {
$errorcode = socket_last_error() ;
$errormsg = socket_strerror($errorcode);
echo "<p>Error socket IPv6: ".$errormsg."</p>\n" ;
}
else {
echo "<p>IPv6 supported</p>\n" ;
socket_close($socket);
}
}
else echo "<p>Extension PHP sockets not loaded</p>\n" ;