{"id":187,"date":"2006-03-19T12:59:13","date_gmt":"2006-03-19T17:59:13","guid":{"rendered":"http:\/\/blog.elharo.com\/blog\/?p=187"},"modified":"2008-05-28T15:30:10","modified_gmt":"2008-05-28T20:30:10","slug":"converting-a-mini-to-a-server-part-5-virtual-hosts","status":"publish","type":"post","link":"https:\/\/www.elharo.com\/blog\/mac\/2006\/03\/19\/converting-a-mini-to-a-server-part-5-virtual-hosts\/","title":{"rendered":"Converting a Mini to a Server, Part 5: Virtual Hosts"},"content":{"rendered":"<p>Now that I&#8217;ve got one site working on the Mini, it&#8217;s time to set up the other two. Naturally this requires virtual hosts. Since I&#8217;m not ready to switch off the current production server yet, I added a few more host names I can use until I am: minicafe.elharo.com for cafe.elharo.com, xom.elharo.com for www.xom.nu, and blog.elharo.com for www.elharo.com. (These are only accessible from inside my internal subnet so don&#8217;t try to connect to them.)<br \/>\n<!--more--><\/p>\n<p>Next I copied over the virtual host configurations from the production httpd.conf file and restarted the server. It didn&#8217;t work. I still only saw one host. Duh. The old configs used the production names (cafe.elharo.com, www.xom.nu, and www.elharo.com) which weren&#8217;t yet mapped to the Mini. I edited the conf file to point to the temporary domains, restarted, and it all worked. Yay!<\/p>\n<p>Hmm, well not quite. The Cafes gave an error message. It seems I needed to specify <\/p>\n<p>    DirectoryIndex index.html index.php<\/p>\n<p>in its virtual host config. I&#8217; m not sure why I didn&#8217;t need to do that on the old server. maybve there was a system wide config I didn&#8217;t copy over? Anyway it&#8217;s done now and it&#8217;s time to install WordPress and copy over the database. <\/p>\n<p>As a bonus xom.nu will soon redirect to www.xom.nu instead of cafe.elharo.com, which had been confusing some people. On the minus side, elharo.com will now redirect to www.xom.nu instead of www.elharo.com. I&#8217;ll have to figure out how to fix that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that I&#8217;ve got one site working on the Mini, it&#8217;s time to set up the other two. Naturally this requires virtual hosts. Since I&#8217;m not ready to switch off the current production server yet, I added a few more host names I can use until I am: minicafe.elharo.com for cafe.elharo.com, xom.elharo.com for www.xom.nu, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[410],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-mac","tag-flash"],"_links":{"self":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":0,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}