Bonjour,
ça semble tout bête mais à chaque fois j'ai le problème je l'avais résolu il y a bien longtemps et je ne me rappelle plus comment. J'y ai passé au moins 3 heures sans succès.
J'ai 2 sites hébergés sur un serveur perso sous debian sqeeze, le problème et que quelque soit celui que je demande c'est toujours le même qui s'affiche.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 cat /etc/hosts
127.0.0.1       localhost 192.168.0.21
127.0.1.1       serveur
127.0.0.1       diodio13.fr www.diodio13.fr testingbox.fr www.testingbox.fr
 
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 ls /etc/apache2/sites-enabled/
000-default  diodio13.fr  testingbox.fr
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 ls /var/www/
diodio13fr  index.html  testingbox
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
root@serveur:/etc/apache2/sites-available# cat diodio13.fr
<VirtualHost diodio13.fr>
        ServerAdmin webmaster@localhost
        ServerName diodio13.fr
        ServerAlias www.diodio13.fr
 
        DocumentRoot /var/www/diodio13fr
 
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/diodio13fr>
                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 ${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
 
    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>
 
</VirtualHost>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
root@serveur:/etc/apache2/sites-available# cat testingbox.fr
<VirtualHost testingbox.fr>
        ServerAdmin webmaster@localhost
        ServerName testingbox.fr
        ServerAlias www.testingbox.fr
 
        DocumentRoot /var/www/testingbox
 
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/testingbox>
                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 ${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
 
    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>
 
</VirtualHost>
httpd.conf est vide et apache2.conf est d'origine.

Si une bonne âme veut bien m'apporter ses lumières car là je sèche. En plus quasiment tous mes recherche g**g** aboutissent à des configurations avec les vHosts dans httpd.conf et non pas un fichier par vHost dans sites-available :/
Merci à vous.