Multi Site - Domain Gandi - Hébergement OVH
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

Multi Site - Domain Gandi - Hébergement OVH

Par
ThomasR11
Créé le 2019-01-10 23:04:26 (edited on 2024-09-04 13:53:32) dans Hébergements Web

Bonjour à tous,

Domaine chez Gandi + hébergement sur OVH :


Côté OVH :
https://snag.gy/zehCWP.jpg


J'ai ceci côté Gandi :

@ 10800 IN SOA ns1.gandi.net. hostmaster.gandi.net. 1547115231 10800 3600 604800 10800
7dws1-check 1800 IN CNAME ovh.com.
@ 1800 IN A 87.98.154.146
@ 1800 IN MX 1 mx0.mail.ovh.net.
@ 1800 IN MX 10 list.nir-industry.com.
@ 1800 IN MX 100 mx3.mail.ovh.net.
@ 1800 IN MX 5 mx1.mail.ovh.net.
@ 1800 IN MX 50 mx2.mail.ovh.net.
@ 1800 IN TXT "v=spf1 a mx ip4:194.146.224.0/24 ip4:93.184.35.196/26 include:sivit.org ~all"
@ 1800 IN TXT "v=spf1 include:spf2.sbr-master.net"
_autodiscover._tcp 1800 IN SRV 0 0 443 ex.mail.ovh.net.
ftp 1800 IN A 93.184.35.227
imap 1800 IN A 194.146.224.64
img 1800 IN CNAME img.customizedurl.com.
link 1800 IN CNAME link.customizedurl.com.
list 1800 IN A 194.146.224.19
mta0._domainkey 1800 IN TXT "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDm8LOXQhq/UV16zgXP/qVqwtwNdiRLGVXWdQeLsOLSC6vAnib0wWFjXq2391OwtOmLjVut1l1U8WrQZQGNXiB3wANyN86tQOs9ER2WaMXBxpqqNRU/vd498PwjWXi47Zn+uWXf2tbH2Qd41OxROvplBgrHTm5dHfG60eflSpTIdQIDAQAB"
mutumail._domainkey 1800 IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCn75eqndCtiWw8+VrSRktuRCQYGEZTpVontubHRwTv/WRpCBCT0nBm443howAMpvQklm4O8tq2BrQ3fYnZRHoJCioRJL0Ntz3op04c/1OK3V2lYz9tUOAeIylQXqtUoGR/tmr0eslUwgwG5eIR6DeBhbbg+1giMdw+b8oMJfrsCwIDAQAB"
ovhcontrol.nir-industry.com 1800 IN TXT "YhMfvotv5yGrRA2mjHmIgQ"
pop 1800 IN A 194.146.224.64
postmaster 1800 IN A 194.146.224.64
smtp 1800 IN A 194.146.224.64
sql1 1800 IN A 93.184.35.248
www 1800 IN A 87.98.154.146


Ma config côté OVH saute (elle s'efface toute seule) au bout d'une heure (OVH avait l'air de dire que c'était parce que le token ovhcontrol n'était pas accessible mais depuis je vois pas ce qui pourrait bloquer.

https://snag.gy/HpREPh.jpg


Merci pour vos avis et pistes.


9 réponses ( Latest reply on 2024-11-13 20:36:23 Par
ThomasR11
)

```text ```text
dig +nocmd +noall +answer ovjcontrol.nir-industry.com TXT @ns1.gandi.net

```

tu n'as pas de record txt sur gandi pour le sous-domaine ovhcontrol

au lieu de
`ovhcontrol.nir-industry.com 1800 IN TXT "YhMfvotv5yGrRA2mjHmIgQ"`

essaye plutôt avec
`ovhcontrol 1800 IN TXT "YhMfvotv5yGrRA2mjHmIgQ"`

hors sujet, ordre d'utilisation de tes MX:
```text
nir-industry.com. 1800 IN MX 1 mx0.mail.ovh.net.
nir-industry.com. 1800 IN MX 5 mx1.mail.ovh.net.
nir-industry.com. 1800 IN MX 10 list.nir-industry.com.
nir-industry.com. 1800 IN MX 50 mx2.mail.ovh.net.
nir-industry.com. 1800 IN MX 100 mx3.mail.ovh.net.
```
tu recois des mails sur list.nir-industry.com? ```

Merci pour ton retour rapide Kyodev. On va essayer cette piste.
Aucune idée pour ta dernière question, je demanderai à l'intéressé.

Nous avons apporté les modifications proposées, çà marche toujours pas pour 1industry.comindustry.com
C'est même bizarre le domaine 1industry.comindustry.com renvoie maintenant sur nirindustry.com (sans le "-")....


Voici le fichier côté Gandi :
> @ 10800 IN SOA ns1.gandi.net. hostmaster.gandi.net. 1547195318 10800 3600 604800 10800
> 7dws1-check 1800 IN CNAME ovh.com.
> @ 1800 IN A 87.98.154.146
> @ 1800 IN MX 1 mx0.mail.ovh.net.
> @ 1800 IN MX 10 1industry.com.industry.com.
> @ 1800 IN MX 100 mx3.mail.ovh.net.
> @ 1800 IN MX 5 mx1.mail.ovh.net.
> @ 1800 IN MX 50 mx2.mail.ovh.net.
> @ 1800 IN TXT "v=spf1 a mx ip4:194.146.224.0/24 ip4:93.184.35.196/26 include:sivit.org ~all"
> @ 1800 IN TXT "v=spf1 include:spf2.1master.netmaster.net"
> _autodiscover._tcp 1800 IN SRV 0 0 443 ex.mail.ovh.net.
> ftp 1800 IN A 93.184.35.227
> imap 1800 IN A 194.146.224.64
> img 1800 IN CNAME img.customizedurl.com.
> link 1800 IN CNAME link.customizedurl.com.
> list 1800 IN A 194.146.224.19
> mta0._domainkey 1800 IN TXT "k=rsa;p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDm8LOXQhq/UV16zgXP/qVqwtwNdiRLGVXWdQeLsOLSC6vAnib0wWFjXq2391OwtOmLjVut1l1U8WrQZQGNXiB3wANyN86tQOs9ER2WaMXBxpqqNRU/vd498PwjWXi47Zn+uWXf2tbH2Qd41OxROvplBgrHTm5dHfG60eflSpTIdQIDAQAB"
> mutumail._domainkey 1800 IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCn75eqndCtiWw8+VrSRktuRCQYGEZTpVontubHRwTv/WRpCBCT0nBm443howAMpvQklm4O8tq2BrQ3fYnZRHoJCioRJL0Ntz3op04c/1OK3V2lYz9tUOAeIylQXqtUoGR/tmr0eslUwgwG5eIR6DeBhbbg+1giMdw+b8oMJfrsCwIDAQAB"
> ovhcontrol 1800 IN TXT "YhMfvotv5yGrRA2mjHmIgQ"
> pop 1800 IN A 194.146.224.64
> postmaster 1800 IN A 194.146.224.64
> smtp 1800 IN A 194.146.224.64
> sql1 1800 IN A 93.184.35.248
> www 1800 IN A 87.98.154.146

La configuration côté OVH est inchangé et ne saute plus.

https://snag.gy/ifQepU.jpg

```text > çà marche toujours pas pour nir-industry.com

heu?
```text
dig +nocmd +noall +answer ovhcontrol.nir-industry.com TXT @ns1.gandi.net
ovhcontrol.nir-industry.com. 1800 IN TXT "YhMfvotv5yGrRA2mjHmIgQ"
```
c'est correct

pour le reste:
```text
curl --head -XGET http://nir-industry.com/
HTTP/1.1 301 Moved Permanently
Location: http://www.nirindustry.com/

curl --head -XGET http://www.nir-industry.com/
HTTP/1.1 301 Moved Permanently
Location: http://www.nirindustry.com/

curl --head -XGET https://nir-industry.com/
curl: (60) SSL: no alternative certificate subject name matches target host name 'nir-industry.com'

curl --head -XGET https://www.nir-industry.com/
curl: (60) SSL: no alternative certificate subject name matches target host name 'www.nir-industry.com'

location utilisée:
http://www.nirindustry.com/
```

pas de certificat installé

```
curl --head http://www.nir-industry.com/
HTTP/1.1 301 Moved Permanently
Date: Fri, 11 Jan 2019 12:02:13 GMT
Content-Type: text/html; charset=UTF-8
Server: Apache
X-Powered-By: PHP/7.0
Location: http://www.nirindustry.com/
```

ton CMS génère cette redirection sur http://www.nirindustry.com/
php7.0 est déprécié ```

Merci vous me mettez sur le bon chemin ! Merci beaucoup.

En effet, le répertoire sur lequel je cherche à mapper 1industry.comindustry.com n'est autre qu'un répertoire dans lequel j'avais précédemment cloné 1industry.comindustry.com sur un domaine temporaire nirindustry.com

Je vais reprendre la configuration pour pointer 1industry.comindustry.com vers un répetoire vierge.
A partir de là, je verrai comment recloné avec le backup dont je dispose.

Pour le certificat SSL, du fait que le domaine soit chez Gandi, c'est une question qui se règle côté registrar (gandi) , ou côté hébergement ?

Merci pour vos lumières.

le certificat, c'est au niveau du serveur, donc Ovh
https://docs.ovh.com/fr/hosting/les-certificats-ssl-sur-les-hebergements-web/

pour le reste, je ne comprends pas, mais selon moi , c'est ton CMS (lequel?) à régler pour éviter ces redirections indésirables

Voilà, le mapping est OK maintenant, çà pointe vers un répertoire vide.

Si je remets dans ce répertoire le clone de mon CMS (WordPress) on aura la même situation qui va faire pointer vers nirindutry.com

Du coup, je me demande si je reprends le boulot à zéro pour le clonage, ou si j'essaye de trouver la clé à corriger dans la base de données. Ca doit être wp_options de mémoire, mais s'il y a plus de chose à changer, je voudrai pas m'emmêler les pinceaux.

Ou alors, je remets en service nirindustry.com et je change l'information dans WordPress pour que çà pointe sur 1industry.comindustry.com puis une fois que çà marche j'étouffe ce qu'il reste de la configuration nirindustry.com

J'ai fais avec ma dernière alternative, j'ai remis en service nirindustry.com
dans l'admin j'ai forcé l'url à 1industry.comindustry.com
j'ai redéplacé les fichiers dans le nouveau répertoire de 1industry.comindustry.com

et maintenant je retire tout ce qui est en relation avec nirindustry.com

Je vais attendre 2h et générer un certinficat ssl.

A suivre.
Merci beaucoup kyodev de m'avoir mis sur le bon chemin.

pas besoin d'attendre pour régénérer un certificat et ça prend au moins 45mn

dans WP, deux urls dans réglages sont à vérifier/corriger
malheureusement, des plugins se mêlent parfois de cela

pire, si tu suis des conseils mal à propos, tu peux aussi jeter un oeil dans wp-config.php
vérifier si besoin:
.htaccess (y compris dans le bloc WP)
.user.ini avec wordfence