{"id":629,"date":"2014-04-26T21:36:08","date_gmt":"2014-04-26T19:36:08","guid":{"rendered":"https:\/\/www.fanjoe.be\/?p=629"},"modified":"2021-04-13T21:16:35","modified_gmt":"2021-04-13T19:16:35","slug":"acheter-et-configurer-un-domaine-chez-ovh","status":"publish","type":"post","link":"https:\/\/www.fanjoe.be\/?p=629","title":{"rendered":"Acheter et configurer un domaine chez OVH"},"content":{"rendered":"<p>Suite \u00e0 l&rsquo;arr\u00eat des services gratuits du <a href=\"http:\/\/dyn.com\" target=\"_blank\" rel=\"noopener\">Dyn.com<\/a> ce mercredi 7 mai 2014, j&rsquo;ai du me mettre en qu\u00eate d&rsquo;un autre service pour pouvoir continuer \u00e0 acc\u00e9der \u00e0 tout ce que j&rsquo;h\u00e9berge sur mon Raspberry Pi. Et inutile de songer \u00e0 rester chez <a href=\"http:\/\/dyn.com\" target=\"_blank\" rel=\"noopener\">Dyn.com<\/a> car leurs prix sont exorbitants.<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-630\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-01.png\" alt=\"Dyn_to_OVH-01\" width=\"620\" height=\"238\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-01.png 655w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-01-175x67.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-01-300x114.png 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>Il y avait bien la solution de repli de <a href=\"http:\/\/www.noip.com\" target=\"_blank\" rel=\"noopener\">NO-IP<\/a>, mais tant qu&rsquo;\u00e0 reconfigurer les choses, autant le faire bien et passer \u00e0 un domaine chez un \u00ab\u00a0vrai\u00a0\u00bb registrar.<br \/>\nApr\u00e8s quelques recherches et la consultation du site <a href=\"http:\/\/www.domainemoinscher.com\/\" target=\"_blank\" rel=\"noopener\">Domaine Moins Cher<\/a>, je me suis tourn\u00e9 vers OVH.<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-636 size-full\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-02.png\" alt=\"Dyn_to_OVH-02\" width=\"281\" height=\"53\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-02.png 281w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-02-175x33.png 175w\" sizes=\"auto, (max-width: 281px) 100vw, 281px\" \/><\/a>Outre son prix tr\u00e8s bas (6,99\u20ac HTVA), ce registrar fran\u00e7ais fournit de nombreux services web et son s\u00e9rieux n&rsquo;est plus \u00e0 d\u00e9montrer.<\/p>\n<p>Dans mon cas, il pr\u00e9sente l&rsquo;\u00e9norme avantage d&rsquo;\u00eatre compatible avec ddclient, ce qui me permet de maintenir \u00e0 jour le lien entre mon domaine et mon IP dynamique.<\/p>\n<p>Pour acheter un domaine chez eux, c&rsquo;est tr\u00e8s simple : <a href=\"http:\/\/www.ovh.com\" target=\"_blank\" rel=\"noopener\">www.ovh.com<\/a> &gt; Onglet WEB &gt; Noms de domaine, choisir le <a href=\"http:\/\/fr.wikipedia.org\/wiki\/Domaine_de_premier_niveau\" target=\"_blank\" rel=\"noopener\">TLD<\/a> (<strong>T<\/strong><span class=\"lang-en\" lang=\"en\">op-<strong>L<\/strong>evel <strong>D<\/strong>omain), le <a href=\"http:\/\/fr.wikipedia.org\/wiki\/Domaine_de_deuxi%C3%A8me_niveau\" target=\"_blank\" rel=\"noopener\">SLD<\/a> (<strong>S<\/strong>econd-<strong>L<\/strong>evel <strong>D<\/strong>omain)<\/span>, s&rsquo;inscrire, payer, etc&#8230;<\/p>\n<p>Pour configurer les zones DNS, il faut se rendre dans l&rsquo;espace client que OVH appelle le \u00ab\u00a0<a href=\"https:\/\/www.ovh.com\/managerv3\/\" target=\"_blank\" rel=\"noopener\">Manager V3<\/a>\u00a0\u00bb et se logger avec ses identifiant et mot de passe.<\/p>\n<p>Dans la barre tout en haut, il faut \u00ab\u00a0choisir son produit\u00a0\u00bb, c&rsquo;est \u00e0 dire s\u00e9lectionner le nom de domaine \u00e0 configurer.<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-642\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-03.png\" alt=\"Dyn_to_OVH-03\" width=\"760\" height=\"60\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-03.png 760w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-03-175x13.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-03-300x23.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p>Ensuite, dans le menu lat\u00e9ral, \u00e0 gauche, on va s\u00e9lectionner \u00ab\u00a0Domaine &amp; DNS\u00a0\u00bb .<br \/>\nEt enfin, cliquer sur l&rsquo;ic\u00f4ne \u00ab\u00a0Zone DNS\u00a0\u00bb.<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-648 size-full\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-04.png\" alt=\"Dyn_to_OVH-04\" width=\"583\" height=\"102\" \/><\/a><\/p>\n<p>Afin de pouvoir maintenir l&rsquo;IP \u00e0 jour nous allons devoir cr\u00e9er un champ de pointage dynamique de type \u00ab\u00a0Dyn HOST\u00a0\u00bb. C&rsquo;est en fait un champ de Type A, mais dynamique.<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-651\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-05.png\" alt=\"Dyn_to_OVH-05\" width=\"550\" height=\"121\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-05.png 550w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-05-175x38.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-05-300x66.png 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>Nous allons laisser le champ \u00ab\u00a0Sous-domaine\u00a0\u00bb vide afin de pointer l&rsquo;IP vers la racine du domaine.<br \/>\nIci, <strong>fanjoe.be <\/strong>.<br \/>\nEn dessous, nous allons entrer l&rsquo;IP publique dynamique actuelle, attribu\u00e9e par le <a href=\"http:\/\/fr.wikipedia.org\/wiki\/Fournisseur_d%27acc%C3%A8s_%C3%A0_internet\" target=\"_blank\" rel=\"noopener\">FAI<\/a> et cocher la cr\u00e9ation de l&rsquo;identifiant DynHOST.<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-652\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-06.png\" alt=\"Dyn_to_OVH-06\" width=\"552\" height=\"476\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-06.png 552w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-06-175x150.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-06-300x258.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<p>A l&rsquo;\u00e9tape suivante, se choisir un login et un mot de passe qui serviront pour la mise \u00e0 jour de l&rsquo;IP avec ddclient.<\/p>\n<p>Le login sera au final sous la forme : \u00ab\u00a0domaine.tld-<strong>login<\/strong>\u00a0\u00bb .<\/p>\n<p>Par d\u00e9faut, le sous-domaine <strong>WWW<\/strong> est un <strong>CNAME<\/strong> de domaine.tld .<br \/>\nIci, www.fanjoe.be est un CNAME de fanjoe.be<\/p>\n<p><strong>Attention !<\/strong> : OVH n&rsquo;accepte pas la mise \u00e0 jour de plusieurs sous-domaines avec un seul Dyn-HOST.<br \/>\nIl est recommand\u00e9 d&rsquo;utiliser des CNAME vers les sous domaines pointant vers une m\u00eame IP.<br \/>\nTous les sous-domaines de fanjoe.be : www.fanjoe.be, skene.fanjoe.be, torrent.fanjoe.be sont des CNAME de fanjoe.be . Ceci permet au serveur OVH de ne faire la mise \u00e0 jour que d&rsquo;un seul champ. Tr\u00e8s \u00e9conomique lorsqu&rsquo;il y a de nombreux sous-domaines.<\/p>\n<p>Pour cr\u00e9er des sous-domaines, on va donc cliquer sur : \u00ab\u00a0Type CNAME\u00a0\u00bb .<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-655\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-07.png\" alt=\"Dyn_to_OVH-07\" width=\"550\" height=\"121\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-07.png 550w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-07-175x38.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to_OVH-07-300x66.png 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>On va renseigner le sous domaine d\u00e9sir\u00e9 dans le champ ha-doc et mettre la racine du domaine (domaine.tld) dans la destination.<\/p>\n<p><a href=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to-OVH-08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-656\" src=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to-OVH-08.png\" alt=\"Dyn_to-OVH-08\" width=\"552\" height=\"402\" srcset=\"https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to-OVH-08.png 552w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to-OVH-08-175x127.png 175w, https:\/\/www.fanjoe.be\/wp-content\/uploads\/2014\/04\/Dyn_to-OVH-08-300x218.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<p>C\u00f4t\u00e9 Nginx, on va ajouter quelques lignes au fichier de configuration :<\/p>\n<pre>sudo nano \/etc\/nginx\/sites-available\/default<\/pre>\n<p>Ces lignes vont permettre de rediriger fanjoe.be vers www.fanjoe.be, l&rsquo;adresse du wordpress.<br \/>\nC&rsquo;est tr\u00e8s utile, car les moteurs de recherche n&rsquo;aiment pas le contenu dupliqu\u00e9 (sur www et sur la racine).<\/p>\n<pre># Rediriger fanjoe.be -&gt; www.fanjoe.be\nserver {\nserver_name fanjoe.be;\nrewrite ^(.*) https:\/\/www.fanjoe.be$1 permanent;\n}\n<\/pre>\n<p>Ensuite, pour chaque adresse url (sousdomaine.domaine.tld) on a ces lignes :<\/p>\n<pre>server {\nlisten 80;\n\n#Acc\u00e8s uniquement depuis www.fanjoe.be\nserver_name www.fanjoe.be;\n\nroot \/var\/www\/wordpress;\nindex index.php index.html index.htm;\n\nEt toute la suite ici...\n\n}\n<\/pre>\n<p>Ceci va permettre \u00e0 Nginx d&rsquo;aiguiller correctement les requ\u00eates en fonction de l&rsquo;URL.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Edit 12\/04\/2021 :<\/strong><\/span><\/p>\n<p>L&rsquo;article \u00e9tant d\u00e9j\u00e0 ancien, je vous propose de consulter ces liens pour plus d&rsquo;infos sur la configuration d&rsquo;un DynHOST chez OVH et son actualisation par ddclient :<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.ovh.com\/fr\/domains\/utilisation-dynhost\/\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.ovh.com\/fr\/domains\/utilisation-dynhost\/<\/a><\/li>\n<li><a href=\"https:\/\/lucasvidelaine.wordpress.com\/2020\/11\/15\/dyndns-ovh\/\" target=\"_blank\" rel=\"noopener\">https:\/\/lucasvidelaine.wordpress.com\/2020\/11\/15\/dyndns-ovh\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Suite \u00e0 l&rsquo;arr\u00eat des services gratuits du <a href=\"http:\/\/dyn.com\" target=\"_blank\" rel=\"noopener\">Dyn.com<\/a> ce mercredi 7 mai 2014, j&rsquo;ai du me mettre&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10,3,12],"tags":[53,44,51,52],"class_list":["post-629","post","type-post","status-publish","format-standard","hentry","category-geek","category-informatique","category-raspberrypi","tag-domaine","tag-dyn-com","tag-nginx","tag-ovh","end"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=629"}],"version-history":[{"count":0,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=\/wp\/v2\/posts\/629\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fanjoe.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}