{"id":1258,"date":"2004-08-05T19:21:35","date_gmt":"2004-08-05T19:21:35","guid":{"rendered":"http:\/\/sunpig.com\/mt-entry-1258.html"},"modified":"2006-09-23T19:30:11","modified_gmt":"2006-09-23T19:30:11","slug":"local-virtual-hosts-with-apache","status":"publish","type":"post","link":"https:\/\/sunpig.com\/martin\/2004\/08\/05\/local-virtual-hosts-with-apache\/","title":{"rendered":"Local Virtual Hosts with Apache"},"content":{"rendered":"<p>Dave Shea on <a href=\"http:\/\/www.mezzoblue.com\/archives\/2004\/08\/05\/virtual_host\/\">setting up Virtual Hosts<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.mezzoblue.com\/archives\/2004\/08\/05\/virtual_host\/\">\n<p><a href=\"http:\/\/www.evolt.org\/article\/Enabling_Virtual_Hosts_on_MacOS_X\/18\/13138\/\">Virtual hosts<\/a> enable you to intelligently <a href=\"http:\/\/www.apptools.com\/phptools\/virtualhost.php\">run multiple sites<\/a> on a single server. The useful side effect is that with proper setup, you can point your browser to <kbd>www.whatever.whatever<\/kbd> and load a local copy. My development site is now <kbd>www.mezzoblue.dev<\/kbd>, which works exactly the same as the .com, just faster. I don&#8217;t even need a connection to work on it, because it&#8217;s all local; all my <acronym title=\"recursive acronym for PHP: Hypertext Preprocessor\">PHP<\/acronym> scripts and Movable Type templates work, and the local filesystem access is so much nicer than using <acronym title=\"File Transfer Protocol\">FTP<\/acronym>.<\/p>\n<p>I&#8217;ve long been aware of their use, but never committed to learning how to set up virtual hosts in Apache. A conversation with Narayan of <a href=\"http:\/\/www.etherfarm.com\/\">Etherfarm<\/a> on his recent trip through Vancouver enlightened, and it&#8217;s really ridiculously easy, to the point where I wish I&#8217;d done this last year.<\/p>\n<\/blockquote>\n<p>It&#8217;s just like kludging about with the <a href=\"http:\/\/support.microsoft.com\/default.aspx?scid=kb;en-us;839013\">Microsoft Loopback Adapter<\/a> and hacking around with your <a href=\"http:\/\/www.accs-net.com\/hosts\/how_to_use_hosts.html\">HOSTS file<\/a>&#8230;only a couple of orders of magnitude easier.<\/p>\n<p>Nnnngggg.  The time I&#8217;ve wasted&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dave Shea on <a href=\"http:\/\/www.mezzoblue.com\/archives\/2004\/08\/05\/virtual_host\/\">setting up Virtual Hosts<\/a>:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1258","post","type-post","status-publish","format-standard","hentry","category-techie"],"_links":{"self":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/posts\/1258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/comments?post=1258"}],"version-history":[{"count":0,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/posts\/1258\/revisions"}],"wp:attachment":[{"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/media?parent=1258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/categories?post=1258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunpig.com\/martin\/wp-json\/wp\/v2\/tags?post=1258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}