{"id":38118,"date":"2025-08-05T16:21:55","date_gmt":"2025-08-05T19:21:55","guid":{"rendered":"https:\/\/www.locaweb.com.br\/ajuda\/?post_type=ht_kb&#038;p=38118"},"modified":"2025-08-05T16:21:55","modified_gmt":"2025-08-05T19:21:55","slug":"como-configurar-um-dominio-para-sua-aplicacao-na-nuvem-locaweb-cloud","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-configurar-um-dominio-para-sua-aplicacao-na-nuvem-locaweb-cloud\/","title":{"rendered":"Como configurar um dom\u00ednio para sua aplica\u00e7\u00e3o na nuvem &#8211; Locaweb Cloud"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">O objetivo deste guia \u00e9 fazer com que um nome de dom\u00ednio amig\u00e1vel (como www.minhaempresa.com.br) direcione os visitantes para a sua aplica\u00e7\u00e3o que est\u00e1 rodando em uma M\u00e1quina Virtual (VM) na nuvem, atualmente acess\u00edvel por um endere\u00e7o IP.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Pense nisso da seguinte forma: o IP \u00e9 a coordenada de GPS do seu servidor; o dom\u00ednio \u00e9 o endere\u00e7o postal f\u00e1cil de lembrar.<\/span><\/p>\n<h6><span style=\"font-weight: 400;\">O que voc\u00ea precisa ter pronto?<\/span><\/h6>\n<p><span style=\"font-weight: 400;\">Antes de configurar o apontamento, garanta que voc\u00ea tenha os seguintes itens preparados e acess\u00edveis:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Um dom\u00ednio registrado:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Voc\u00ea precisa j\u00e1 ter comprado e ser o propriet\u00e1rio de um <\/span><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-contratar-um-registro-de-dominio-na-locaweb-registro-de-dominio\/\" target=\"_blank\" rel=\"noopener\">nome de dom\u00ednio por meio de um servi\u00e7o de registro<\/a>.<\/span><span style=\"font-weight: 400;\">Caso ainda n\u00e3o tenha, veja como registrar um dom\u00ednio na Locaweb.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Acesso ao painel de DNS do seu dom\u00ednio:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Voc\u00ea precisa ter o <\/span><a href=\"https:\/\/login-new.locaweb.com.br\/login\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">login e a senha<\/span><\/a><span style=\"font-weight: 400;\"> do<\/span><b> painel de controle<\/b><span style=\"font-weight: 400;\"> do servi\u00e7o onde registrou seu dom\u00ednio. \u00c9 neste painel que a configura\u00e7\u00e3o de apontamento ser\u00e1 feita.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Sua aplica\u00e7\u00e3o rodando na nuvem:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Sua aplica\u00e7\u00e3o ou site deve estar instalado, configurado e funcionando em uma ou mais VMs dentro do Locaweb Cloud. <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/por-onde-comecar-no-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Se ainda n\u00e3o instalou, veja por onde come\u00e7ar<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Um ponto de entrada com IP P\u00fablico fixo na nuvem:<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Para seu dom\u00ednio apontar para sua aplica\u00e7\u00e3o, ela precisa estar acess\u00edvel por um<\/span><b> IP p\u00fablico fixo.<\/b><span style=\"font-weight: 400;\"> Esse IP pode ser:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Um <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/o-que-e-e-como-criar-um-balanceador-de-cargas-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\">Balanceador de Cargas<\/a> <span style=\"font-weight: 400;\">(<\/span><i><span style=\"font-weight: 400;\">Load Balancer<\/span><\/i><span style=\"font-weight: 400;\">), que distribui o tr\u00e1fego para suas VMs (m\u00e9todo recomendado para produ\u00e7\u00e3o).<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Uma regra de <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/encaminhamento-de-porta-port-forwarding-e-nat-estatico-no-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><b>NAT Est\u00e1tico<\/b><span style=\"font-weight: 400;\"> ou <\/span><b>Encaminhamento de Portas (Port Forwarding<\/b><b>)<\/b><\/a> <span style=\"font-weight: 400;\">que aponta para sua VM.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Caso ainda n\u00e3o tenha um <\/span><span style=\"font-weight: 400;\">IP p\u00fablico, <a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-alocar-um-ip-publico-para-sua-vm\/\" target=\"_blank\" rel=\"noopener\">veja aqui como criar<\/a><\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>Passo a passo: Como ligar seu dom\u00ednio \u00e0 aplica\u00e7\u00e3o (Configurando o DNS)<\/b><\/p>\n<p><span style=\"font-weight: 400;\">A \u201cm\u00e1gica\u201d que conecta seu dom\u00ednio ao IP da sua aplica\u00e7\u00e3o \u00e9 feita via <\/span><b>DNS<\/b><span style=\"font-weight: 400;\">, mais especificamente com um registro chamado <\/span><b>A Record<\/b><span style=\"font-weight: 400;\">. Pense no registro A como a etiqueta com o n\u00famero da casa que voc\u00ea cola na sua caixa postal. Assim, todo mundo sabe onde entregar suas cartas (ou, no nosso caso, o tr\u00e1fego do site).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Se o seu dom\u00ednio est\u00e1 registrado na Locaweb, <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-criar-as-entradas-de-dns-na-zona-de-dns-hospedagem-de-sites-2\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">veja este tutorial para criar registros DNS<\/span><\/a><\/p>\n<p><b>Como preencher o registro \u201cA\u201d<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Tipo (<\/b><b><i>Type<\/i><\/b><b>):<\/b><span style=\"font-weight: 400;\"> Escolha A. Significa \u201cAddress\u201d e serve para apontar nomes para um endere\u00e7o IPv4<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b><i>Host<\/i><\/b><b> ou Nome:<\/b><span style=\"font-weight: 400;\"> Digite o subdom\u00ednio que voc\u00ea quer apontar.<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Para o seu site principal (ex: www.minhaempresa.com.br), voc\u00ea geralmente digita <\/span><b>www<\/b><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Para apontar o dom\u00ednio raiz (ex.: minhaempresa.com.br, sem o www), voc\u00ea geralmente digita <\/span><b>@<\/b><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Aponta para (<\/b><b><i>Points to<\/i><\/b><b>) ou Valor (<\/b><b><i>Value<\/i><\/b><b>):<\/b><span style=\"font-weight: 400;\"> Cole aqui o <\/span><b>endere\u00e7o IP P\u00fablico<\/b><span style=\"font-weight: 400;\"> da sua aplica\u00e7\u00e3o na nuvem (o IP do seu balanceador de cargas ou da sua regra de NAT).<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>TTL (<\/b><b><i>Time To Live<\/i><\/b><b>):<\/b><span style=\"font-weight: 400;\"> \u00c9 quanto tempo que a resposta do DNS fica armazenada em cache na internet. Voc\u00ea pode deixar o valor padr\u00e3o (geralmente 3600 segundos\/1 hora) ou um valor mais baixo se estiver fazendo testes.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Salve o Registro<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Clique para salvar ou confirmar as altera\u00e7\u00f5es no painel do seu registrador de dom\u00ednio.<\/span><\/li>\n<\/ul>\n<p><b>Etapa final: a propaga\u00e7\u00e3o do DNS<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Ap\u00f3s salvar, suas altera\u00e7\u00f5es precisam se espalhar pela internet, num processo chamado propaga\u00e7\u00e3o do DNS.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Este processo <\/span><b>n\u00e3o \u00e9 instant\u00e2neo<\/b><span style=\"font-weight: 400;\">. Pode levar de alguns minutos a, em casos raros, at\u00e9 48 horas, mas geralmente acontece em menos de 1 hora. <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Enquanto isso, alguns usu\u00e1rios podem acessar seu site no endere\u00e7o novo, e outros ainda enxergar o antigo. Isso \u00e9 normal durante a propaga\u00e7\u00e3o. <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>Pronto!<\/b><span style=\"font-weight: 400;\"> Assim que a propaga\u00e7\u00e3o terminar, digitar o seu dom\u00ednio no navegador levar\u00e1 os visitantes direto para sua aplica\u00e7\u00e3o na nuvem.<\/span><\/p>\n<h6><span style=\"font-weight: 400;\">Pr\u00f3ximos passos<\/span><\/h6>\n<p><b>Crie um ambiente de desenvolvimento usando templates<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Quer testar novas funcionalidades sem arriscar seu ambiente de produ\u00e7\u00e3o? <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/o-que-sao-templates-e-como-usa-los-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Use um Template<\/span><\/a><span style=\"font-weight: 400;\"> da sua VM principal para criar uma c\u00f3pia exata e isolada. Assim, voc\u00ea consegue desenvolver e testar com seguran\u00e7a em um ambiente id\u00eantico ao real<\/span><\/p>\n<p><b>Crie um Snapshot como ponto de restaura\u00e7\u00e3o<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Agora que seu servidor est\u00e1 pronto e no ar, proteja seu trabalho contra imprevistos. Crie um <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/o-que-sao-snapshots-e-como-usa-los-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\">Snapshot <\/a><span style=\"font-weight: 400;\">da sua VM para ter um ponto de restaura\u00e7\u00e3o r\u00e1pido e confi\u00e1vel. Se ocorrer qualquer problema futuro, voc\u00ea poder\u00e1 reverter a VM para este estado seguro.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O objetivo deste guia \u00e9 fazer com que um nome de dom\u00ednio amig\u00e1vel (como www.minhaempresa.com.br) direcione os visitantes para a sua aplica\u00e7\u00e3o que est\u00e1 rodando em uma M\u00e1quina Virtual (VM) na nuvem, atualmente acess\u00edvel por um endere\u00e7o IP. Pense nisso da seguinte forma: o IP \u00e9 a coordenada de GPS&#8230;<\/p>\n","protected":false},"author":30,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[666],"ht-kb-tag":[],"class_list":["post-38118","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-locaweb-cloud"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=38118"}],"version-history":[{"count":2,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38118\/revisions"}],"predecessor-version":[{"id":38170,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38118\/revisions\/38170"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=38118"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=38118"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=38118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}