<input type="hidden" id="_wpnonce" name="_wpnonce" value="419f4d4589" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/2761" /><input type="hidden" id="_wpnonce" name="_wpnonce" value="419f4d4589" /><input type="hidden" name="_wp_http_referer" value="/blog/wp-json/wp/v2/posts/2761" />{"id":2761,"date":"2014-10-29T23:48:39","date_gmt":"2014-10-29T12:48:39","guid":{"rendered":"https:\/\/www.businesslegions.com\/blog\/?p=2761"},"modified":"2014-11-14T13:45:26","modified_gmt":"2014-11-14T02:45:26","slug":"add-virtual-hosts-wamp","status":"publish","type":"post","link":"https:\/\/www.businesslegions.com\/blog\/2014\/10\/29\/add-virtual-hosts-wamp\/","title":{"rendered":"How to add Virtual Hosts to WAMP"},"content":{"rendered":"<!--CusAds0--><p>I&#8217;ve done this many times in the past, but for some reason I forgot the actual steps so decided to write them down. Here&#8217;s the steps:<\/p>\n<p>1. edit the httpd.conf file located in\u00a0C:\\wamp\\bin\\apache\\apache[version number]\\conf<\/p>\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-location.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-2771\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-location-300x238.png?strip=all\" alt=\"httpd conf location\" width=\"300\" height=\"238\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-location-300x238.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-location.png?strip=all 441w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-location.png?strip=all&amp;w=88 88w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-location.png?strip=all&amp;w=176 176w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-location.png?strip=all&amp;w=352 352w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>2. Search for Virtual hosts and remove the #<\/p>\n<div id=\"wpshdo_1\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_1\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_1\"><\/a><a id=\"wpshat_1\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_1\"  onClick=\"javascript:wpsh_toggleBlock(1)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_code(1)\" title=\"Show code only\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"#codesyntax_1\" onClick=\"javascript:wpsh_print(1)\" title=\"Print code\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"https:\/\/www.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif?strip=all&w=960\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_1\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"php\" style=\"font-family:monospace;\"><span class=\"co2\"># Virtual hosts\n<\/span><span class=\"co2\">#Include conf\/extra\/httpd-vhosts.conf<\/span><\/pre><\/div><\/div>\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-settings.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-2772\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/httpd-conf-settings-300x225.png?strip=all\" alt=\"httpd conf settings\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>3. No open the httpd-vhosts.conf file located in\u00a0C:\\wamp\\bin\\apache\\apache[version number]\\conf\\extra and add the following information replacing businesslegion.com with your own domain name:<\/p><!--CusAds0-->\n<p><a href=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/wamp-extra-httpd.png?strip=all&w=2560\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-2774\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/wamp-extra-httpd-300x254.png?strip=all\" alt=\"wamp extra httpd\" width=\"300\" height=\"254\" srcset=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/wamp-extra-httpd-300x254.png?strip=all 300w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/wamp-extra-httpd.png?strip=all 421w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/wamp-extra-httpd.png?strip=all&amp;w=84 84w, https:\/\/cdn.businesslegions.com\/blog\/wp-content\/uploads\/2014\/10\/wamp-extra-httpd.png?strip=all&amp;w=168 168w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<div id=\"wpshdo_2\" class=\"wp-synhighlighter-outer\"><div id=\"wpshdt_2\" class=\"wp-synhighlighter-expanded\"><table border=\"0\" width=\"100%\"><tr><td align=\"left\" width=\"80%\"><a name=\"#codesyntax_2\"><\/a><a id=\"wpshat_2\" class=\"wp-synhighlighter-title\" href=\"#codesyntax_2\"  onClick=\"javascript:wpsh_toggleBlock(2)\" title=\"Click to show\/hide code block\">Source code<\/a><\/td><td align=\"right\"><a href=\"#codesyntax_2\" onClick=\"javascript:wpsh_code(2)\" title=\"Show code only\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/code.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"#codesyntax_2\" onClick=\"javascript:wpsh_print(2)\" title=\"Print code\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/printer.png?strip=all&w=960\" \/><\/a>&nbsp;<a href=\"https:\/\/www.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/About.html\" target=\"_blank\" title=\"Show plugin information\"><img decoding=\"async\" border=\"0\" style=\"border: 0 none\" src=\"https:\/\/cdn.businesslegions.com\/blog\/wp-content\/plugins\/wp-synhighlight\/themes\/default\/images\/info.gif?strip=all&w=960\" \/><\/a>&nbsp;<\/td><\/tr><\/table><\/div><div id=\"wpshdi_2\" class=\"wp-synhighlighter-inner\" style=\"display: block;\"><pre class=\"php\" style=\"font-family:monospace;\"><span class=\"sy0\">&lt;<\/span>VirtualHost <span class=\"sy0\">*:<\/span><span class=\"nu0\">80<\/span><span class=\"sy0\">&gt;<\/span>\nServerAdmin info<span class=\"sy0\">@<\/span>businesslegions<span class=\"sy0\">.<\/span>com\nDocumentRoot <span class=\"st0\">&quot;C:\/wamp\/www\/businesslegions.com&quot;<\/span>\nServerName www<span class=\"sy0\">.<\/span>businesslegions<span class=\"sy0\">.<\/span>com\nServerAlias <span class=\"sy0\">*.<\/span>businesslegions<span class=\"sy0\">.<\/span>com businesslegions<span class=\"sy0\">.<\/span>com\nErrorLog <span class=\"st0\">&quot;logs\/businesslegions.com-error.log&quot;<\/span>\nCustomLog <span class=\"st0\">&quot;logs\/businesslegions.com-access.log&quot;<\/span> common\n<span class=\"sy0\">&lt;\/<\/span>VirtualHost<span class=\"sy0\">&gt;<\/span><\/pre><\/div><\/div>\n<p>&nbsp;<\/p>\n<p>4. Restart the WAMP service and test. The easiest way to test this is to modify your host file and add:<\/p>\n<p>127.0.0.1 yourdomainname.com<\/p>\n<p>Once you have finished with your testing remember to remove it.<\/p>\n<div class=\"lt-box\" style=\"border:1px solid #1d6a9e\"><div class=\"lt-box-title\" style=\"background-color:#2485C6;border-top:1px solid #a7cee8;text-shadow:1px 1px 0 #0b283b\">DO YOU LIKE WHAT YOU'VE READ?<\/div><div class=\"lt-box-content\">Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!\r\n\r\n<p><div class=\"tnp tnp-subscription \">\n<form method=\"post\" action=\"https:\/\/www.businesslegions.com\/blog\/wp-admin\/admin-ajax.php?action=tnp&amp;na=s\">\n<input type=\"hidden\" name=\"nlang\" value=\"\">\n<div class=\"tnp-field tnp-field-firstname\"><label for=\"tnp-1\">Name<\/label>\n<input class=\"tnp-name\" type=\"text\" name=\"nn\" id=\"tnp-1\" value=\"\" placeholder=\"\"><\/div>\n<div class=\"tnp-field tnp-field-email\"><label for=\"tnp-2\">Email<\/label>\n<input class=\"tnp-email\" type=\"email\" name=\"ne\" id=\"tnp-2\" value=\"\" placeholder=\"\" required><\/div>\n<div class=\"tnp-field tnp-field-button\" style=\"text-align: left\"><input class=\"tnp-submit\" type=\"submit\" value=\"Subscribe\" style=\"\">\n<\/div>\n<\/form>\n<\/div>\n<\/p>\r\n\r\n<\/div><\/div><!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve done this many times in the past, but for some reason I forgot the actual steps so decided to write them down. Here&#8217;s the steps: 1. edit the httpd.conf file located in\u00a0C:\\wamp\\bin\\apache\\apache[version number]\\conf 2. Search for Virtual hosts and remove the # 3. No open the httpd-vhosts.conf file located in\u00a0C:\\wamp\\bin\\apache\\apache[version number]\\conf\\extra and add the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2774,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1043],"tags":[1680,1681,1682,1609],"class_list":["post-2761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-websites","tag-httpd","tag-vhost","tag-virtual-hosts","tag-wamp"],"_links":{"self":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/comments?post=2761"}],"version-history":[{"count":4,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2761\/revisions"}],"predecessor-version":[{"id":2775,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/posts\/2761\/revisions\/2775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media\/2774"}],"wp:attachment":[{"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/media?parent=2761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/categories?post=2761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.businesslegions.com\/blog\/wp-json\/wp\/v2\/tags?post=2761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}