J’ai récemment configurer des virtual host sur un serveur dedié sous Debian afin que chaque nom de domaine puisse pointer ver le dossier correspondant a son site web, mais ca ne pas marche 
J’ai vu plusieurs methodes sur le net, qui se ressemble plus ou moins, la mienne est la suivante:
j’ai editer: /etc/hosts pour mettre dedans 127.0.0.1 monsite1.fr 127.0.0.1 monsite2.fr etc…
J’ai creer puis editer /etc/apache2/sites-available/monsite1.conf
[code]<VirtualHost *:80>
ServerAdmin monmail@monsite1.fr
ServerName monsite1.fr
ServerAlias www.monsite1.fr
DocumentRoot /var/www/monsite1
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/monsite1>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
[/code]
un lien symbolique pour finir:
ln -s /etc/apache2/sites-available/montsite1.conf /etc/apache2/sites-enabled/monsite1.conf
Mais rien, nada, marche pas
J’aurais oublier quelque chose ?

