Le 11/10/04 � 12:23, Francois Sauterey �crivait: > Le lundi 11 Octobre 2004 10:40, Aux Saveurs Gourmandes a �crit : > > Bonjour > > Je veut faire cohabiter plusieurs noms de domaine sur le meme serveur > > apache. > > Comment dois je m'y prendre pour que les url soient corectes > > (http://domaine1.com/mapage.html marche bien mais google me reference > > plutot ainssi http://servername_apache/rep/rep/mapage.html) > > Il faut faire des virtualhost dans /etc/apache/httpd.conf > qlq chose comme: > > Listen TON_IP:80 > NameVirtualHost TON_IP > > <VirtualHost TON_IP> > ServerName www.domain1.com > DocumentRoot /var/www/domain1.com > ErrorLog /var/log/apache/domain1.com.erreur.log > CustomLog /var/log/apache/domain1.com.acces.log full > # CustomLog /var/log/apache/ma_machine.acces.log full ### log globaux > </VirtualHost> > > <VirtualHost TON_IP> > ServerName www.domain2.com > DocumentRoot /var/www/domain2.com > ErrorLog /var/log/apache/domain2.com.erreur.log > CustomLog /var/log/apache/domain2.com.acces.log full > # CustomLog /var/log/apache/ma_machine.acces.log full ### log globaux > </VirtualHost>
Penser aussi � m�me � jour son fichier /etc/hosts ou son serveur DNS > Mais il existe une tr�s bonne doc (www.apache.org) et des listes pour �a ;~} Ca existe m�me en fran�ais: http://www.apachefrance.com/ Bon courage Jean-Pierre Groupement Roannais d'Aide aux Logiciels Libres: Prochaine r�union samedi 16 octobre 2004 � 14h00

