{"id":50,"date":"2022-11-09T18:40:32","date_gmt":"2022-11-09T18:40:32","guid":{"rendered":"http:\/\/javigomez.org\/?p=50"},"modified":"2025-09-29T20:34:30","modified_gmt":"2025-09-29T20:34:30","slug":"hacer-un-host-virtual-por-nombre","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2022\/11\/09\/hacer-un-host-virtual-por-nombre\/","title":{"rendered":"Hacer un Host Virtual por nombre"},"content":{"rendered":"\n<p>Se quiere que dependiendo del dominio, el servidor web responda con un nuevo Host Virtual<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Crear una entrada en host para que el servidor web responda con otro nombre<\/li>\n<\/ol>\n\n\n\n<p><strong>C:\\Windows\\System32\\drivers\\etc\\hots<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>127.0.0.1 javi.jav<\/code><\/pre>\n\n\n\n<p>2. Configurar una entrada en httpd-vhosts.conf para que responda con este nombre<\/p>\n\n\n\n<p><strong>C:\\xampp\\apache\\conf\\extra\\httpd-vhosts.conf<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *>\n   DocumentRoot \"C:\/xampp\/htdocs\"\n   ServerName localhost\n&lt;\/VirtualHost>\n\n&lt;VirtualHost *>\n    DocumentRoot \"C:\\xampp\\htdocs\\javi\"\n    ServerName javi.jav\n\n  &lt;Directory \"C:\\xampp\\htdocs\\javi\">\n     Options Indexes\n     Order allow,deny\n     Allow from all\n  &lt;\/Directory>\n\n    ErrorLog \"logs\/error_javi.com.log\"\n    CustomLog \"logs\/log_javi.log\" common\n\n&lt;\/VirtualHost><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Se quiere que dependiendo del dominio, el servidor web responda con un nuevo Host Virtual C:\\Windows\\System32\\drivers\\etc\\hots 2. Configurar una entrada en httpd-vhosts.conf para que responda &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-apache"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":989,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/50\/revisions\/989"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}