{"id":323,"date":"2013-01-28T11:53:00","date_gmt":"2013-01-28T17:53:00","guid":{"rendered":"http:\/\/sergiob.org\/wordpress\/?p=323"},"modified":"2013-01-28T11:53:00","modified_gmt":"2013-01-28T17:53:00","slug":"verificar-status-de-aliases-de-apache","status":"publish","type":"post","link":"https:\/\/blog.sergiob.org\/?p=323","title":{"rendered":"Verificar status de aliases de Apache"},"content":{"rendered":"<p>Hace poco hice una migraci\u00f3n de un servidor que, entre otras cosas, tiene un Apache con numerosos aliases. Para verificar que los aliases estuvieran &#8220;arriba&#8221;, solo hace falta un poco de magia, tambi\u00e9n conocida como awk y curl:<\/p>\n<p><code>grep Alias \/ruta\/a\/configuracion\/apache | awk '$1 !~ \/#\/ {print $2}' | xargs -I {} curl -sL -w \"%{http_code} %{url_effective}\\n\" SERVIDOR.COM\/{} -o \/dev\/null;<\/code><\/p>\n<p><a href=\"http:\/\/beerpla.net\/2010\/06\/10\/how-to-display-just-the-http-response-code-in-cli-curl\/\">hattip curl<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hace poco hice una migraci\u00f3n de un servidor que, entre otras cosas, tiene un Apache con numerosos aliases. Para verificar que los aliases estuvieran &#8220;arriba&#8221;, solo hace falta un poco de magia, tambi\u00e9n conocida como awk y curl: grep Alias \/ruta\/a\/configuracion\/apache | awk &#8216;$1 !~ \/#\/ {print $2}&#8217; | xargs -I {} curl -sL -w &hellip; <a href=\"https:\/\/blog.sergiob.org\/?p=323\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Verificar status de aliases de Apache&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,25],"tags":[51,119],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-geek","category-unix","tag-el-regreso-de-lord","tag-supergeek"],"_links":{"self":[{"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323"}],"version-history":[{"count":0,"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.sergiob.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}