{"id":10806,"date":"2023-05-25T06:05:27","date_gmt":"2023-05-25T06:05:27","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=10806"},"modified":"2026-02-26T14:02:43","modified_gmt":"2026-02-26T14:02:43","slug":"how-to-setup-apache-virtual-hosts-in-centos-7","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/","title":{"rendered":"How to Setup Apache Virtual Hosts in CentOS 7"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">In this tutorial, we will explain how to create Apache virtual hosts on CentOS7.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If you are looking to host more domains on your server, then you need to create corresponding hosts on your web server. In this way, your server can deliver different content for different requests.<\/p>\r\n<p><strong>How to Install Apache<\/strong><\/p>\r\n<p>Before we start, make sure that you have root access to your VPS or server using an SSH connection.<\/p>\r\n<p>To Install Apache on your CentOS7, follow the command:<\/p>\r\n<pre>sudo yum -y install httpd<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Follow the following steps to setup Apache Virtual Hosts in CentOS7<\/p>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Once it is installed, you need to enable Apache as a CentOS service:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo systemctl enable httpd.service<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Now, visit your server&#8217;s IP address and check whether Apache is running or not. Your page should look like this:<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"180\" data-id=\"10808\" class=\"wp-image-10808\" src=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png\" alt=\"\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png 666w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2-300x81.png 300w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2-230x62.png 230w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2-350x95.png 350w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2-480x130.png 480w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/figure>\r\n<\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><strong>Now, you need to create a directory tree.<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Here, a directory tree is used to hold website data and you need to set the working directory to <strong>\/var\/www<\/strong>\u00a0by running this command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cd \/var\/www\/<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You need to use a unique document root for each virtual host:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">mkdir -p yourdomain.com\/public_html\r\n<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Note: To replace yourdomain.com with your actual domain name.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Try to make the directory accessible to Apache. Now run chown to change the ownership and chmod to set the correct permissions for the whole web directory.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Apache now has the necessary rights to add new directories and serve content in response to incoming queries.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><strong>Create a Demo Page<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is suggested to create a demo page for each of your Apache virtual hosts. By doing so, you can test the host&#8217;s functionality before actually moving your website&#8217;s data. Here&#8217;s how to do it:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Now, use the nano editor to create an index.html file in yourdomain.com\/public_html directory:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">nano yourdomain.com\/public_html\/index.html<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Copy the following content to the file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">&lt;html&gt;\r\n  &lt;head&gt;\r\n  \u00a0 &lt;title&gt;This is a test page&lt;\/title&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n  \u00a0 &lt;h1&gt;It works!&lt;\/h1&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Save the file by pressing CTRL + X\u00a0and then\u00a0Y.<\/p>\r\n\r\n\r\n\r\n<p id=\"h-4-creating-the-virtual-host\" class=\"wp-block-heading\"><strong>Create the Virtual Host<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Create a new virtual host .conf file in the Apache configuration directory:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">nano \/etc\/httpd\/conf.d\/yourdomain.com.conf<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Now, insert the following content into the .conf file:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">&lt;VirtualHost *:80&gt;\r\n\u00a0 \u00a0 ServerName www.yourdomain.com\r\n  \u00a0 ServerAlias yourdomain.com\r\n  \u00a0 DocumentRoot \/var\/www\/yourdomain.com\/public_html\r\n  \u00a0 ErrorLog \/var\/www\/yourdomain.com\/error.log\r\n  \u00a0 CustomLog \/var\/www\/yourdomain.com\/requests.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In this above example, we are telling Apache that we will be using port 80 for the communication and that yourdomain.com is the name of the virtual host. Also, we specify directories for the website files (document root) and error logs.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Restart Apache<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl restart httpd.service<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">That is it, in this way, you can create an Apache virtual host for your domain! You can read more on <a href=\"https:\/\/www.bodhost.com\/kb\/how-to-enabled-the-force-apache-spamassassin\/\" target=\"_blank\" rel=\"noopener\">How To Enabled The Force Apache SpamAssassin<\/a>.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will explain how to create Apache virtual hosts on CentOS7. If you are looking to host more domains on your server, then you need to create&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[894],"tags":[671,1452],"class_list":["post-10806","post","type-post","status-publish","format-standard","hentry","category-apache-web-server","tag-centos-7","tag-setup-apache-virtual-hosts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Set Up Apache Virtual Hosts on CentOS 7 - Beginner&#039;s Guide<\/title>\n<meta name=\"description\" content=\"In this article, we have explained how to setup virtual hosts in centos7. For more information, visit our knowledge-base section.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set Up Apache Virtual Hosts on CentOS 7 - Beginner&#039;s Guide\" \/>\n<meta property=\"og:description\" content=\"In this article, we have explained how to setup virtual hosts in centos7. For more information, visit our knowledge-base section.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-25T06:05:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"666\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vincer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vincer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/\"},\"author\":{\"name\":\"Vincer\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\"},\"headline\":\"How to Setup Apache Virtual Hosts in CentOS 7\",\"datePublished\":\"2023-05-25T06:05:27+00:00\",\"dateModified\":\"2026-02-26T14:02:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/\"},\"wordCount\":413,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Screenshot_2-2.png\",\"keywords\":[\"centos 7\",\"Setup Apache Virtual Hosts\"],\"articleSection\":[\"Apache Web server\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/\",\"name\":\"Set Up Apache Virtual Hosts on CentOS 7 - Beginner's Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Screenshot_2-2.png\",\"datePublished\":\"2023-05-25T06:05:27+00:00\",\"dateModified\":\"2026-02-26T14:02:43+00:00\",\"description\":\"In this article, we have explained how to setup virtual hosts in centos7. For more information, visit our knowledge-base section.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Screenshot_2-2.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Screenshot_2-2.png\",\"width\":666,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/how-to-setup-apache-virtual-hosts-in-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Apache Web server\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/apache-web-server\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Setup Apache Virtual Hosts in CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\",\"name\":\"Vincer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"caption\":\"Vincer\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/vinayak\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set Up Apache Virtual Hosts on CentOS 7 - Beginner's Guide","description":"In this article, we have explained how to setup virtual hosts in centos7. For more information, visit our knowledge-base section.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"Set Up Apache Virtual Hosts on CentOS 7 - Beginner's Guide","og_description":"In this article, we have explained how to setup virtual hosts in centos7. For more information, visit our knowledge-base section.","og_url":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2023-05-25T06:05:27+00:00","article_modified_time":"2026-02-26T14:02:43+00:00","og_image":[{"width":666,"height":180,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png","type":"image\/png"}],"author":"Vincer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vincer","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/"},"author":{"name":"Vincer","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0"},"headline":"How to Setup Apache Virtual Hosts in CentOS 7","datePublished":"2023-05-25T06:05:27+00:00","dateModified":"2026-02-26T14:02:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/"},"wordCount":413,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png","keywords":["centos 7","Setup Apache Virtual Hosts"],"articleSection":["Apache Web server"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/","url":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/","name":"Set Up Apache Virtual Hosts on CentOS 7 - Beginner's Guide","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png","datePublished":"2023-05-25T06:05:27+00:00","dateModified":"2026-02-26T14:02:43+00:00","description":"In this article, we have explained how to setup virtual hosts in centos7. For more information, visit our knowledge-base section.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/#primaryimage","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2023\/05\/Screenshot_2-2.png","width":666,"height":180},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/how-to-setup-apache-virtual-hosts-in-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Apache Web server","item":"https:\/\/www.bodhost.com\/kb\/category\/apache-web-server\/"},{"@type":"ListItem","position":2,"name":"How to Setup Apache Virtual Hosts in CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0","name":"Vincer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","caption":"Vincer"},"url":"https:\/\/www.bodhost.com\/kb\/author\/vinayak\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/10806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=10806"}],"version-history":[{"count":21,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/10806\/revisions"}],"predecessor-version":[{"id":13311,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/10806\/revisions\/13311"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=10806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=10806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=10806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}