{"id":47,"date":"2022-11-09T18:27:37","date_gmt":"2022-11-09T18:27:37","guid":{"rendered":"http:\/\/javigomez.org\/?p=47"},"modified":"2025-09-29T20:34:30","modified_gmt":"2025-09-29T20:34:30","slug":"virtualhost-por-puerto","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2022\/11\/09\/virtualhost-por-puerto\/","title":{"rendered":"VirtualHost por puerto"},"content":{"rendered":"\n<p>Crear un host virtual que responda en el otro puerto.<\/p>\n\n\n\n<p>Queremos que <strong>http:\/\/localhost\/alias\/a<\/strong> responda en el puerto 81 de manera <strong>http:\/\/localhost:81<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hacer que Apache escuche en otro puerto<\/li>\n<\/ol>\n\n\n\n<p><strong>C:\\xampp\\apache\\conf\\httpd.conf<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Listen 80 \nListen 81<\/code><\/pre>\n\n\n\n<p>2. Crear la configuraci\u00f3n de host virtual<\/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 *&gt;\n  DocumentRoot \"C:\\xampp\\htdocs\"\n  ServerName localhost\n&lt;\/VirtualHost&gt;\n\n&lt;VirtualHost *:81&gt;\n   DocumentRoot \"C:\/xampp\/htdocs\/alias\/a\"\n    &lt;Directory \"C:\/xampp\/htdocs\/alias\/a\"&gt;\n      Order allow,deny\n      Allow from all\n    &lt;\/Directory&gt;\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Crear un host virtual que responda en el otro puerto. Queremos que http:\/\/localhost\/alias\/a responda en el puerto 81 de manera http:\/\/localhost:81 C:\\xampp\\apache\\conf\\httpd.conf 2. Crear la &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-47","post","type-post","status-publish","format-standard","hentry","category-apache"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/47","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=47"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":990,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/47\/revisions\/990"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}