# <VirtualHost *:80> ServerName aviatechno DocumentRoot "G:/www/aviatechno" <Directory "G:/www/aviatechno/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride all Require local </Directory> </VirtualHost> # <VirtualHost *:80> ServerName faq-fra.aviatechno DocumentRoot "G:/www/faq-fra" <Directory "G:/www/faq-fra/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride all Require local </Directory> </VirtualHost> # <VirtualHost *:80> ServerName le-pointu.aviatechno DocumentRoot "G:/www/le.pointu" <Directory "G:/www/le.pointu/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride all Require local </Directory> </VirtualHost> # <VirtualHost *:80> ServerName wampserver.aviatechno DocumentRoot "G:/www/wampserver" <Directory "G:/www/wampserver/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride all Require local </Directory> </VirtualHost>
if(!defined('OTO_LOCATION')) { define("OTO_LOCATION",$_SERVER['SERVER_NAME']); switch (OTO_LOCATION) { case "aviatechno.free.fr": $db_host = 'sql.free.fr'; $db_name = 'aviatechno'; $db_username = 'user'; $db_password = '***************'; $tld = '.free.fr'; break; case "aviatechno.net": $db_host = 'localhost'; $db_name = 'aviatechno'; $db_username = 'user'; $db_password = '***********'; $tld = '.net'; break; case "aviatechno": case "127.0.0.10": define("LOCAL_USE", 1); $db_host = '127.0.0.1'; $db_name = 'aviatechno'; $db_username = 'user'; $db_password = '**********'; $tld = ''; break; case "faq-fra.aviatechno": define("LOCAL_USE", 1); $db_host = '127.0.0.1'; $db_name = 'faqfra'; $db_username = 'user'; $db_password = '**********'; $tld = ''; break; case "faq-fra.aviatechno.net": $db_host = 'localhost'; $db_name = 'faqfra'; $db_username = 'user'; $db_password = '***********'; $tld = '.net' break; etc.On peut faire autrement.