Merci Minus!.. Autant pour moi, tu as raison j’aurais du commencer par là:
fichier /etc/apache2/sites-available/titi:
<VirtualHost *:80>
ServerAdmin admin@titi.com
ServerName www.titi.com
DocumentRoot /var/www/titi.com/
<Directory /var/www/titi.com/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
ServerSignature Off
</VirtualHost>
fichier /etc/apache2/sites-available/toto:
VirtualHost *:80>
ServerAdmin admin@titi.com
ServerName www.toto.com
DocumentRoot /var/www/toto.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/toto.com/>
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
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 ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
En fait titi est mon nom de domaine perso pris chez OVH mais logé sur un serveur personnel à la maison et je loge temporairement le site d’un ami qui a pour nom de domaine toto.com pris chez godaddy. Le fichier /etc/apache2/sites-available/toto est en fait un “copier-coller” d’un tuto quelcnque ce qui explique la différence entre les deux fichiers