{"id":29167,"date":"2016-12-20T18:27:01","date_gmt":"2016-12-20T18:27:01","guid":{"rendered":"http:\/\/antonini.psc.br\/blogmed\/?p=29167"},"modified":"2021-04-08T01:53:16","modified_gmt":"2021-04-08T01:53:16","slug":"configure-o-wordpress-local-para-acesso-remoto-intranet-e-extranet","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=29167","title":{"rendered":"Configure o WordPress local para acesso remoto (intranet e extranet)"},"content":{"rendered":"<p style=\"text-align: justify;\">postado em 13 de nov de 2011 14:06 por Cristiano Guilherme Oliveira Silva<\/p>\n<p style=\"text-align: justify;\">Ao instalar o WordPress utilizando servidores Web locais (XAMPP, Vertrigo, EasyPHP, Apache&#8230;) durante a instala\u00e7\u00e3o \u00e9 necess\u00e1rio informar a url absoluta do site.<br \/>\nOs campos s\u00e3o<br \/>\n<strong>Endere\u00e7o do WordPress (URL):<\/strong><br \/>\n<strong>Endere\u00e7o do site (URL):<\/strong><\/p>\n<p style=\"text-align: justify;\">[singlepic id=2367 w= h= float=center]<\/p>\n<div style=\"text-align: justify;\">Quando h\u00e1 esta necessidade de acesso externo ao WodPress desenvolvido localmente, \u00e9 necess\u00e1rio copiar todo conte\u00fado&nbsp;para um dom\u00ednio v\u00e1lido na internet (ex: <strong>http:\/\/www.seusite.com.br\/wordpress<\/strong>)&nbsp;junto de seu banco de dados, executando as devidas atualiza\u00e7\u00f5es de URL de<strong>http:\/\/localhost\/wordpress<\/strong> para <strong><a href=\"http:\/\/www.seusite.com.br\/wordpress\">http:\/\/www.seusite.com.br\/wordpress<\/a><\/strong>.<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\">Neste post, n\u00e3o iremos configurar Roteadores, Firewall, DDNS e outros recursos que s\u00e3o necess\u00e1rios para acessar um site local a partir de uma rede externa. Vamos alterar as configura\u00e7\u00f5es do WordPress para que funcione em ambas as redes.<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\"><strong>1 &#8211; FA\u00c7A UM BACKUP (por precau\u00e7\u00e3o!)<\/strong><\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\">2- Edite&nbsp;o arquivo <strong>wp-config.php, <\/strong>logo ap\u00f3s a linha<em> define(&#8216;WP_DEBUG&#8217;, false);<\/em> insira o texto abaixo, alterando o caminho de instala\u00e7\u00e3o do WordPress:<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #0000ff;\">define(&#8216;WP_HOME&#8217;, &#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/pastadeinstala\u00e7\u00e3odowordpress&#8217;);<br \/>\ndefine(&#8216;WP_SITEURL&#8217;, &#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/pastadeinstala\u00e7\u00e3odowordpress&#8217;);<\/span><\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\"><strong>Exemplo:<\/strong><\/div>\n<div style=\"text-align: justify;\">define(&#8216;WP_HOME&#8217;, &#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/wordpress&#8217;);<br \/>\ndefine(&#8216;WP_SITEURL&#8217;, &#8216;http:\/\/&#8217;.$_SERVER[&#8216;HTTP_HOST&#8217;].&#8217;\/wordpress&#8217;)<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\">3 &#8211; Salve o arquivo, reinicie o servi\u00e7o Apache.<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\">4 &#8211; Pronto!<\/div>\n<div style=\"text-align: justify;\">&nbsp;<\/div>\n<div style=\"text-align: justify;\">Seu WordPress estar\u00e1 acess\u00edvel em sua rede local e externa!<\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\">[<a href=\"javascript:history.go(-1)\">Voltar<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>postado em 13 de nov de 2011 14:06 por Cristiano Guilherme Oliveira Silva Ao instalar o WordPress utilizando servidores Web locais (XAMPP, Vertrigo, EasyPHP, Apache&#8230;) durante a instala\u00e7\u00e3o \u00e9 necess\u00e1rio informar a url absoluta do site. Os campos s\u00e3o Endere\u00e7o do WordPress (URL): Endere\u00e7o do site (URL): [singlepic id=2367 w= h= float=center] Quando h\u00e1 esta [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-29167","post","type-post","status-publish","format-standard","hentry","category-videos"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/29167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29167"}],"version-history":[{"count":2,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/29167\/revisions"}],"predecessor-version":[{"id":29173,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/29167\/revisions\/29173"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}