{"id":4114,"date":"2022-10-20T10:34:32","date_gmt":"2022-10-20T08:34:32","guid":{"rendered":"https:\/\/assistance.groupemagiconline.com\/?post_type=ht_kb&#038;p=4114"},"modified":"2022-10-20T10:45:37","modified_gmt":"2022-10-20T08:45:37","slug":"relier-un-nom-de-domaine-a-mon-vps","status":"publish","type":"ht_kb","link":"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/relier-un-nom-de-domaine-a-mon-vps\/","title":{"rendered":"Link a domain name to my VPS"},"content":{"rendered":"<div id=\"mw-content-text\" class=\"mw-content-ltr\" dir=\"ltr\" lang=\"fr\">\n<div>    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon\"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThis article is about Apache version 2.4.38    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t<\/div>\n<div><\/div>\n<ol>\n<li>The domain name must point to the IP address of your VPS.<\/li>\n<li><a title=\"SSH connection on a VPS or dedicated server\" href=\"https:\/\/assistance.groupemagiconline.com\/en\/knowledge-base\/se-connecter-en-ssh-vps-serveur-dedie\/\" target=\"_blank\" rel=\"noopener\">Connecting to the VPS via SSH<\/a><\/li>\n<li>Create the vhost file associated with the :<br \/>\n<code>nano \/etc\/apache2\/sites-available\/yourdomain.conf<\/code><\/li>\n<li>Add this to the :<\/li>\n<\/ol>\n<pre>ServerName yourdomain.tld\r\n    ServerAlias alias.yourdomain.tld\r\n    ServerAlias youralias.tld\r\n    DocumentRoot \/home\/yourdomain\/www\r\n    \r\n    \tOptions FollowSymLinks\r\n    \tAllowOverride All\r\n<\/pre>\n<ol>\n<li>Save and close the file:\u00a0<code>CTRL+O, enter<\/code>\u00a0then\u00a0<code>CTRL-X<\/code><\/li>\n<li>Enable vhost in apache :<br \/>\n<code>a2ensite yourdomain.conf<\/code><\/li>\n<li>Restart apache :<br \/>\n<code>\/etc\/init.d\/apache2 restart<\/code><\/li>\n<\/ol>\n<\/div>\n<div id=\"mw-articlefeedbackv5\" class=\"articleFeedbackv5\">\n<div id=\"articleFeedbackv5-panel\" class=\"articleFeedbackv5-panel\">\n<div class=\"articleFeedbackv5-buffer\">\n<div class=\"articleFeedbackv5-title-wrap\"><\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The domain name must point to the IP address of your VPS. Connect via SSH to the VPS Create the vhost file associated with the domain: nano \/etc\/apache2\/sites-available\/yourdomain.conf Add this to the file:  ServerName yourdomain.tld ServerAlias alias.yourdomain.tld ServerAlias youralias.tld DocumentRoot \/home\/yourdomain\/www  Options FollowSymLinks AllowOverride All  ...<\/p>","protected":false},"author":52,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[590],"ht-kb-tag":[1277],"class_list":["post-4114","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-serveur-prive-virtuel","ht_kb_tag-relier-un-nom-de-domaine-a-mon-vps"],"_links":{"self":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb\/4114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/comments?post=4114"}],"version-history":[{"count":3,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb\/4114\/revisions"}],"predecessor-version":[{"id":11420,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb\/4114\/revisions\/11420"}],"wp:attachment":[{"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/media?parent=4114"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb-category?post=4114"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/assistance.groupemagiconline.com\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=4114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}