Probleme de DNS ou de Virtual host?

Nouveau WRInaute
Bonjour , j'ai un petit problème je ne comprends pas, j'ai un serv dedie(dedibox) j'avais lu un topic la dessus mais je n’ai pas été capable de le retrouver aujourd'hui..

Alors enfaite voila j'ai plusieurs nom de domaine chez ovh, et apparemment ya pas forcement besoin de mettre les DNS dans la console de gestion dedibox pour que sa marche donc aucun des mes domaine sont gère par la console de gestion!

Le problème est que quand je veux accéder a http://mondomaine.com j'arrive dans /var/www/ mais quand je tape http://www.mondomaine.com j’arrive dans le bon répertoire /var/www/mondomaine donc comment je peux résoudre se problème est-ce un problème de config DNS ou est ce un problème de virtualhost apache ?

Config chez OVH

.mondomaine.com NS dns12.ovh.net
.mondomaine.com NS ns12.ovh.net
.mondomaine.com MX 1 redirect.ovh.net
.mondomaine.com A 88.191.Ip de ma dedibox
www.mondomaine.com CNAME mondomaine.com
audiomondomaine.com CNAME audio.ovh.net
ftpmondomaine.com CNAME mondomaine.com
ftp2mondomaine.com CNAME anonymous.ftp.ovh.net
impmondomaine.com CNAME imp.ovh.net
jabbermondomaine.com CNAME jab1.redirect.ovh.net
mail.pokerbetcash.com CNAME ns0.ovh.net
ox.mondomaine.com CNAME ox.ovh.net
pop3.mondomaine.com CNAME ns0.ovh.net
sip.mondomaine.com CNAME sip1.redirect.ovh.net
smtp.mondomaine.com CNAME ns0.ovh.net
squirrel.mondomaine.com CNAME squirrel.ovh.net
vpn.mondomaine.com CNAME vpn.redirect.ovh.net
.mondomaine.com SPF v=spf1 include:mx.ovh.com ~all

Bon voila smile Si quelqun peut m'aider?
 
Nouveau WRInaute
Hum...

Après relecture, c'estr plutôt un ServerAlias qu'il manque (et non un ScriptAlias)

Code:
ServerName www.mondomaine.com
ServerAlias mondomaine.com


PatrickM.
 
Discussions similaires
Haut