{"id":221,"date":"2025-08-14T07:38:57","date_gmt":"2025-08-14T07:38:57","guid":{"rendered":"https:\/\/vicservers.com\/blog\/?p=221"},"modified":"2025-08-14T07:38:57","modified_gmt":"2025-08-14T07:38:57","slug":"how-to-run-multiple-sites-on-one-server-using-virtual-hosts","status":"publish","type":"post","link":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/","title":{"rendered":"How to Run Multiple Sites on One Server Using Virtual Hosts"},"content":{"rendered":"<h2 style=\"text-align: center\"><strong>How to Run Multiple Sites on One Server Using Virtual Hosts<\/strong><\/h2>\n<p>If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With <strong>Virtual Hosts<\/strong>, you can host multiple websites, each with its own domain name, content, and configuration, on the <strong>same physical or virtual server<\/strong>. This is not only cost-effective but also much easier to manage, especially if you\u2019re using a powerful hosting service like <a href=\"https:\/\/www.vicservers.com\" target=\"_blank\" rel=\"noopener\"><strong>Vicservers<\/strong>.<\/a><\/p>\n<p>In this guide, we\u2019ll walk you step-by-step through <strong>setting up multiple sites on one server<\/strong> using Apache\u2019s Virtual Host feature.<\/p>\n<h2><strong>What Are Virtual Hosts?<\/strong><\/h2>\n<p><strong>Virtual Hosts<\/strong> allow a single web server to serve different websites based on:<\/p>\n<ul>\n<li><strong>Domain Name<\/strong> (Name-based hosting)<\/li>\n<li><strong>IP Address<\/strong> (IP-based hosting)<\/li>\n<li><strong>Port Number<\/strong> (Port-based hosting)<\/li>\n<\/ul>\n<p>Most commonly, <strong>name-based virtual hosting<\/strong> is used \u2014 meaning that Apache identifies which site to serve by checking the <code>Host<\/code> header in the request.<\/p>\n<p>For example:<\/p>\n<ul>\n<li><code>www.site1.com<\/code> \u2192 <code>\/var\/www\/site1<\/code><\/li>\n<li><code>www.site2.com<\/code> \u2192 <code>\/var\/www\/site2<\/code><\/li>\n<\/ul>\n<p>Both can be hosted on the same server and IP.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>Before you begin, ensure you have:<\/p>\n<ul>\n<li>A Linux server (Ubuntu 20.04\/22.04 recommended)<\/li>\n<li>Apache installed<\/li>\n<li>Root or <code>sudo<\/code> access<\/li>\n<li>Two (or more) domain names pointed to your server\u2019s IP address<\/li>\n<li>Basic command-line knowledge<\/li>\n<\/ul>\n<p>If you don\u2019t have a VPS yet, Vicservers offers <strong>affordable, high-performance VPS solutions<\/strong> perfect for hosting multiple sites.<\/p>\n<h2><strong>Step 1: Install Apache<\/strong><\/h2>\n<p>If you don\u2019t already have Apache installed:<\/p>\n<pre><code class=\"language-bash\">sudo apt update\r\nsudo apt install apache2 -y\r\n<\/code><\/pre>\n<p>Enable Apache to start on boot:<\/p>\n<pre><code class=\"language-bash\">sudo systemctl enable apache2\r\nsudo systemctl start apache2\r\n<\/code><\/pre>\n<h2><strong>Step 2: Create Directory Structure for Each Website<\/strong><\/h2>\n<p>You\u2019ll need a separate root directory for each site.<\/p>\n<pre><code class=\"language-bash\">sudo mkdir -p \/var\/www\/site1.com\/public_html\r\nsudo mkdir -p \/var\/www\/site2.com\/public_html\r\n<\/code><\/pre>\n<p>Set permissions:<\/p>\n<pre><code class=\"language-bash\">sudo chown -R $USER:$USER \/var\/www\/site1.com\/public_html\r\nsudo chown -R $USER:$USER \/var\/www\/site2.com\/public_html\r\n<\/code><\/pre>\n<h2><strong>Step 3: Add Sample Content<\/strong><\/h2>\n<p>For <strong>site1.com<\/strong>:<\/p>\n<pre><code class=\"language-bash\">echo \"&lt;h1&gt;Welcome to Site 1&lt;\/h1&gt;\" &gt; \/var\/www\/site1.com\/public_html\/index.html\r\n<\/code><\/pre>\n<p>For <strong>site2.com<\/strong>:<\/p>\n<pre><code class=\"language-bash\">echo \"&lt;h1&gt;Welcome to Site 2&lt;\/h1&gt;\" &gt; \/var\/www\/site2.com\/public_html\/index.html\r\n<\/code><\/pre>\n<h2><strong>Step 4: Create Virtual Host Files<\/strong><\/h2>\n<p>Apache stores Virtual Host configs in <code>\/etc\/apache2\/sites-available\/<\/code>.<\/p>\n<p>For <strong>site1.com<\/strong>:<\/p>\n<pre><code class=\"language-bash\">sudo nano \/etc\/apache2\/sites-available\/site1.com.conf\r\n<\/code><\/pre>\n<p>Add:<\/p>\n<pre><code class=\"language-apache\">&lt;VirtualHost *:80&gt;\r\n    ServerAdmin admin@site1.com\r\n    ServerName site1.com\r\n    ServerAlias www.site1.com\r\n    DocumentRoot \/var\/www\/site1.com\/public_html\r\n    ErrorLog ${APACHE_LOG_DIR}\/site1_error.log\r\n    CustomLog ${APACHE_LOG_DIR}\/site1_access.log combined\r\n&lt;\/VirtualHost&gt;\r\n<\/code><\/pre>\n<p>For <strong>site2.com<\/strong>:<\/p>\n<pre><code class=\"language-bash\">sudo nano \/etc\/apache2\/sites-available\/site2.com.conf\r\n<\/code><\/pre>\n<p>Add:<\/p>\n<pre><code class=\"language-apache\">&lt;VirtualHost *:80&gt;\r\n    ServerAdmin admin@site2.com\r\n    ServerName site2.com\r\n    ServerAlias www.site2.com\r\n    DocumentRoot \/var\/www\/site2.com\/public_html\r\n    ErrorLog ${APACHE_LOG_DIR}\/site2_error.log\r\n    CustomLog ${APACHE_LOG_DIR}\/site2_access.log combined\r\n&lt;\/VirtualHost&gt;\r\n<\/code><\/pre>\n<h2><strong>Step 5: Enable the New Sites<\/strong><\/h2>\n<p>Enable each Virtual Host:<\/p>\n<pre><code class=\"language-bash\">sudo a2ensite site1.com.conf\r\nsudo a2ensite site2.com.conf\r\n<\/code><\/pre>\n<p>Disable the default Apache site (optional):<\/p>\n<pre><code class=\"language-bash\">sudo a2dissite 000-default.conf\r\n<\/code><\/pre>\n<p>Reload Apache:<\/p>\n<pre><code class=\"language-bash\">sudo systemctl reload apache2\r\n<\/code><\/pre>\n<h2><strong>Step 6: Update DNS Records<\/strong><\/h2>\n<p>In your domain registrar\u2019s panel:<\/p>\n<ul>\n<li>Create an <strong>A Record<\/strong> for <code>site1.com<\/code> \u2192 your server\u2019s IP<\/li>\n<li>Create an <strong>A Record<\/strong> for <code>site2.com<\/code> \u2192 your server\u2019s IP<\/li>\n<li>Optionally add <code>www<\/code> CNAME records pointing to the root domains<\/li>\n<\/ul>\n<h2><strong>Step 7: Add SSL Certificates<\/strong><\/h2>\n<p>Using <strong>Let\u2019s Encrypt<\/strong> for free SSL:<\/p>\n<p>Install Certbot:<\/p>\n<pre><code class=\"language-bash\">sudo apt install certbot python3-certbot-apache -y\r\n<\/code><\/pre>\n<p>Run:<\/p>\n<pre><code class=\"language-bash\">sudo certbot --apache -d site1.com -d www.site1.com\r\nsudo certbot --apache -d site2.com -d www.site2.com\r\n<\/code><\/pre>\n<p>This will configure HTTPS automatically.<\/p>\n<h2><strong>Step 8: Test the Setup<\/strong><\/h2>\n<p>Open:<\/p>\n<pre><code>http:\/\/site1.com\r\nhttp:\/\/site2.com\r\n<\/code><\/pre>\n<p>You should see different pages for each site.<\/p>\n<h2><strong>Best Practices for Running Multiple Sites on One Server<\/strong><\/h2>\n<ol>\n<li><strong>Use Strong Permissions<\/strong>\n<ul>\n<li>Don\u2019t run sites as root<\/li>\n<li>Use separate system users if possible<\/li>\n<\/ul>\n<\/li>\n<li><strong>Enable Resource Limits<\/strong>\n<ul>\n<li>Use Apache\u2019s <code>mod_evasive<\/code> and <code>mod_security<\/code> to prevent abuse<\/li>\n<\/ul>\n<\/li>\n<li><strong>Monitor Server Load<\/strong>\n<ul>\n<li>Tools like <code>htop<\/code>, <code>top<\/code>, or VicServers\u2019 built-in monitoring help track CPU\/memory usage<\/li>\n<\/ul>\n<\/li>\n<li><strong>Keep Backups<\/strong>\n<ul>\n<li>Automate backups with <code>rsync<\/code> or VicServers\u2019 backup solutions<\/li>\n<\/ul>\n<\/li>\n<li><strong>Keep Software Updated<\/strong>\n<ul>\n<li>Regularly update Apache, PHP, and system packages<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2><strong>Why Use Vicservers for Multiple Site Hosting?<\/strong><\/h2>\n<p>Running multiple sites requires:<\/p>\n<ul>\n<li><strong>High uptime<\/strong> (Vicservers guarantees 99.9%)<\/li>\n<li><strong>Scalable resources<\/strong><\/li>\n<li><strong>Expert support<\/strong><\/li>\n<li><strong>Easy DNS management<\/strong><\/li>\n<li><strong>Security-first infrastructure<\/strong><\/li>\n<\/ul>\n<p>With Vicservers\u2019 VPS and dedicated plans, you get:<\/p>\n<ul>\n<li>Full root access for complete control<\/li>\n<li>SSD storage for fast load times<\/li>\n<li>Free SSL certificates<\/li>\n<li>24\/7 Nigerian-based support<\/li>\n<\/ul>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>Virtual Hosts make it easy to host multiple websites on one server without sacrificing performance or security. With <a href=\"https:\/\/www.vicservers.com\" target=\"_blank\" rel=\"noopener\"><strong>Vicservers<\/strong><\/a> providing reliable hosting infrastructure, you can scale your web projects without breaking the bank.<\/p>\n<p><strong>Need help setting this up?<\/strong><br \/>\nVicservers offers <strong>FREE Virtual Host setup<\/strong> for new VPS customers.<\/p>\n<p><a href=\"https:\/\/www.vicservers.com\/\">Get Started with Vicservers Today<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Run Multiple Sites on One Server Using Virtual Hosts If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With Virtual Hosts, you can host multiple websites, each with its own domain name, content, and configuration, on the same physical or virtual server. This is not only cost-effective [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":222,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13,12,11,10],"class_list":["post-221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel-whm-tutorials","tag-shared-hosting","tag-vps-hosting","tag-web-development","tag-web-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Run Multiple Sites on One Server Using Virtual Hosts - Vicservers<\/title>\n<meta name=\"description\" content=\"If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With Virtual Hosts, you can host multiple web\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Run Multiple Sites on One Server Using Virtual Hosts - Vicservers\" \/>\n<meta property=\"og:description\" content=\"If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With Virtual Hosts, you can host multiple web\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/\" \/>\n<meta property=\"og:site_name\" content=\"Vicservers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/vicservershq\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T07:38:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/08\/Blog-Flyer-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kenechukwu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@VicserversHQ\" \/>\n<meta name=\"twitter:site\" content=\"@VicserversHQ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kenechukwu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/\"},\"author\":{\"name\":\"Kenechukwu\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/ebfb9711cfc796f625747417ea1da989\"},\"headline\":\"How to Run Multiple Sites on One Server Using Virtual Hosts\",\"datePublished\":\"2025-08-14T07:38:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/\"},\"wordCount\":543,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Blog-Flyer-3.jpg\",\"keywords\":[\"Shared Hosting\",\"VPS Hosting\",\"Web Development\",\"Web Hosting\"],\"articleSection\":[\"cPanel &amp; WHM Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/\",\"url\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/\",\"name\":\"How to Run Multiple Sites on One Server Using Virtual Hosts - Vicservers\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Blog-Flyer-3.jpg\",\"datePublished\":\"2025-08-14T07:38:57+00:00\",\"description\":\"If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With Virtual Hosts, you can host multiple web\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Blog-Flyer-3.jpg\",\"contentUrl\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Blog-Flyer-3.jpg\",\"width\":1920,\"height\":1080,\"caption\":\"How to Run Multiple Sites on One Server Using Virtual Hosts\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Run Multiple Sites on One Server Using Virtual Hosts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/\",\"name\":\"Vicservers\",\"description\":\"Vicservers | Web Hosting Company in Nigeria\",\"publisher\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#organization\",\"name\":\"Vicservers\",\"url\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Vicservers-blog-logo.png\",\"contentUrl\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Vicservers-blog-logo.png\",\"width\":316,\"height\":64,\"caption\":\"Vicservers\"},\"image\":{\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/web.facebook.com\\\/vicservershq\",\"https:\\\/\\\/x.com\\\/VicserversHQ\",\"https:\\\/\\\/www.instagram.com\\\/vicservershq\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/ebfb9711cfc796f625747417ea1da989\",\"name\":\"Kenechukwu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c483f0fa02ad0326b6c2d87905584ba0f568a5b6a397b49b7ffe2180bd8316f3?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c483f0fa02ad0326b6c2d87905584ba0f568a5b6a397b49b7ffe2180bd8316f3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c483f0fa02ad0326b6c2d87905584ba0f568a5b6a397b49b7ffe2180bd8316f3?s=96&d=mm&r=g\",\"caption\":\"Kenechukwu\"},\"url\":\"https:\\\/\\\/vicservers.com\\\/blog\\\/author\\\/kingknows\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Run Multiple Sites on One Server Using Virtual Hosts - Vicservers","description":"If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With Virtual Hosts, you can host multiple web","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:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/","og_locale":"en_US","og_type":"article","og_title":"How to Run Multiple Sites on One Server Using Virtual Hosts - Vicservers","og_description":"If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With Virtual Hosts, you can host multiple web","og_url":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/","og_site_name":"Vicservers","article_publisher":"https:\/\/web.facebook.com\/vicservershq","article_published_time":"2025-08-14T07:38:57+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/08\/Blog-Flyer-3.jpg","type":"image\/jpeg"}],"author":"Kenechukwu","twitter_card":"summary_large_image","twitter_creator":"@VicserversHQ","twitter_site":"@VicserversHQ","twitter_misc":{"Written by":"Kenechukwu","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#article","isPartOf":{"@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/"},"author":{"name":"Kenechukwu","@id":"https:\/\/vicservers.com\/blog\/#\/schema\/person\/ebfb9711cfc796f625747417ea1da989"},"headline":"How to Run Multiple Sites on One Server Using Virtual Hosts","datePublished":"2025-08-14T07:38:57+00:00","mainEntityOfPage":{"@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/"},"wordCount":543,"commentCount":0,"publisher":{"@id":"https:\/\/vicservers.com\/blog\/#organization"},"image":{"@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#primaryimage"},"thumbnailUrl":"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/08\/Blog-Flyer-3.jpg","keywords":["Shared Hosting","VPS Hosting","Web Development","Web Hosting"],"articleSection":["cPanel &amp; WHM Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/","url":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/","name":"How to Run Multiple Sites on One Server Using Virtual Hosts - Vicservers","isPartOf":{"@id":"https:\/\/vicservers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#primaryimage"},"image":{"@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#primaryimage"},"thumbnailUrl":"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/08\/Blog-Flyer-3.jpg","datePublished":"2025-08-14T07:38:57+00:00","description":"If you\u2019re running more than one website, you don\u2019t necessarily need separate servers for each. With Virtual Hosts, you can host multiple web","breadcrumb":{"@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#primaryimage","url":"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/08\/Blog-Flyer-3.jpg","contentUrl":"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/08\/Blog-Flyer-3.jpg","width":1920,"height":1080,"caption":"How to Run Multiple Sites on One Server Using Virtual Hosts"},{"@type":"BreadcrumbList","@id":"https:\/\/vicservers.com\/blog\/how-to-run-multiple-sites-on-one-server-using-virtual-hosts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vicservers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Run Multiple Sites on One Server Using Virtual Hosts"}]},{"@type":"WebSite","@id":"https:\/\/vicservers.com\/blog\/#website","url":"https:\/\/vicservers.com\/blog\/","name":"Vicservers","description":"Vicservers | Web Hosting Company in Nigeria","publisher":{"@id":"https:\/\/vicservers.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vicservers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/vicservers.com\/blog\/#organization","name":"Vicservers","url":"https:\/\/vicservers.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicservers.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/05\/Vicservers-blog-logo.png","contentUrl":"https:\/\/vicservers.com\/blog\/wp-content\/uploads\/2025\/05\/Vicservers-blog-logo.png","width":316,"height":64,"caption":"Vicservers"},"image":{"@id":"https:\/\/vicservers.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/vicservershq","https:\/\/x.com\/VicserversHQ","https:\/\/www.instagram.com\/vicservershq"]},{"@type":"Person","@id":"https:\/\/vicservers.com\/blog\/#\/schema\/person\/ebfb9711cfc796f625747417ea1da989","name":"Kenechukwu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c483f0fa02ad0326b6c2d87905584ba0f568a5b6a397b49b7ffe2180bd8316f3?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c483f0fa02ad0326b6c2d87905584ba0f568a5b6a397b49b7ffe2180bd8316f3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c483f0fa02ad0326b6c2d87905584ba0f568a5b6a397b49b7ffe2180bd8316f3?s=96&d=mm&r=g","caption":"Kenechukwu"},"url":"https:\/\/vicservers.com\/blog\/author\/kingknows\/"}]}},"_links":{"self":[{"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":1,"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/posts\/221\/revisions\/223"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/media\/222"}],"wp:attachment":[{"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/media?parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/categories?post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vicservers.com\/blog\/wp-json\/wp\/v2\/tags?post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}