Bonjour,

Je suis sur un serveur dédié OVH
J'essaye de rajouter un 2eme domaine sur mon serveur mais cela ne marche pas.

Mon fichier httpd.conf


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
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin postmaster@ns1111111.ovh.net
DocumentRoot /home/ovh/www
SuexecUserGroup vpopmail vchkpw
ServerName ns1111111.ovh.net
CustomLog logs/ovh-access_log combined
ScriptAlias /cgi-bin/ /home/ovh/cgi-bin/
AddHandler x-httpd-php5 .php
</VirtualHost>
 
<VirtualHost 111.111.111.11:80>
DocumentRoot /home/livefoot/www
ServerName domaine1.fr
<Directory "/home/livefoot/www">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
 
 
 
<VirtualHost 111.111.111.11.80>
DocumentRoot /home/domaine/nouveau
ServerName www.domaine2.fr
ServerAlias domaine2.fr
<Directory "/home/domaine/nouveau">
allow from all
Options +Indexes
</Directory>
</VirtualHost


Erreur rencontré :
<<
ns1111111 conf # /etc/init.d/apache restart
* Stopping apache2 ...
[Wed Sep 15 22:29:35 2010] [warn] VirtualHost 111.111.111.11:80 overlaps with VirtualHost 111.111.111.11:80, the first has precedence, perhaps you need a NameVirtualHost directive
httpd (no pid file) not running [ ok ]
* Starting apache2 ...
[Wed Sep 15 22:29:36 2010] [warn] VirtualHost 111.111.111.11:80 overlaps with VirtualHost 111.111.111.11:80, the first has precedence, perhaps you need a NameVirtualHost directive
>>>
Pouvez-vous m'aider svp ?

Merci beaucoup