{"id":2482,"date":"2016-03-14T12:03:47","date_gmt":"2016-03-14T12:03:47","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=2482"},"modified":"2016-03-14T12:04:19","modified_gmt":"2016-03-14T12:04:19","slug":"apache-virtualhosts-in-a-simple-fashion-on-rhel","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=2482","title":{"rendered":"Apache Virtualhosts in a simple fashion on RHEL"},"content":{"rendered":"<p>Step 1: Configure Apache to\u00a0<a href=\"http:\/\/httpd.apache.org\/docs\/current\/mod\/mpm_common.html#listen\" rel=\"nofollow\">Listen<\/a>\u00a0on each of the ports you want to service.<\/p>\n<p>Step 2: Set up a\u00a0<a href=\"http:\/\/httpd.apache.org\/docs\/current\/vhosts\/name-based.html\" rel=\"nofollow\">Virtual Host<\/a>\u00a0configuration for each port you want to service.<\/p>\n<p>To Expand, add to httpd.conf<\/p>\n<pre>Listen 80\r\nListen 81\r\nListen 82\r\n\r\n# Listen for virtual host requests on all IP addresses\r\nNameVirtualHost *:80\r\n\r\n&lt;VirtualHost *:80&gt;\r\nDocumentRoot \/var\/www1\r\nServerName www.example1.com\r\n&lt;\/VirtualHost&gt;\r\n\r\nNameVirtualHost *:81\r\n&lt;VirtualHost *:81&gt;\r\nDocumentRoot \/var\/www2\r\nServerName www.example2.org\r\n&lt;\/VirtualHost&gt;\r\n\r\n\r\nNameVirtualHost *:82\r\n&lt;VirtualHost *:82&gt;\r\nDocumentRoot \/var\/www3\r\nServerName www.example3.org\r\n&lt;\/VirtualHost&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Configure Apache to\u00a0Listen\u00a0on each of the ports you want to service. Step 2: Set up a\u00a0Virtual Host\u00a0configuration for each port [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2482","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\/2482","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=2482"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2482\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}