{"id":504,"date":"2011-05-06T19:41:16","date_gmt":"2011-05-06T19:41:16","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=504"},"modified":"2011-05-06T19:41:16","modified_gmt":"2011-05-06T19:41:16","slug":"virtual-hosting-in-10-6-server","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=504","title":{"rendered":"Virtual Hosting in 10.6 Server"},"content":{"rendered":"<p>Stay away from the &#8216;Aliases&#8217; tab. You don&#8217;t use it to configure virtual hosts.<\/p>\n<p>First, create two directories one for each domain you want to host. I name my directories the same as the web domain they are hosting. For example, in your case, call the directories &#8216;mydomain.com&#8217; and &#8216;otherdomain.com&#8217; (using your real domain names of course.)<\/p>\n<p>Now in the Web configuration section of Server Admin select settings and click on the &#8216;+&#8217; button to add your websites. You&#8217;ll be adding two, one for each domain you want to host. Under &#8216;Host Name&#8217; each should have the domain name they are representing, &#8216;mydomain.com&#8217; and &#8216;otherdomain.com&#8217;. The &#8216;IP Address&#8217; and &#8216;Port&#8217; will of course be the same for both. Under &#8216;Web Folder&#8217; for each domain you are going to point each to the two different directories you created for each domain. Restart the web service and all should be working.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stay away from the &#8216;Aliases&#8217; tab. You don&#8217;t use it to configure virtual hosts. First, create two directories one for each domain [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-504","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=504"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/504\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}