{"id":3515,"date":"2009-02-27T18:36:21","date_gmt":"2009-02-27T23:36:21","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3515"},"modified":"2026-10-23T08:59:10","modified_gmt":"2026-10-23T12:59:10","slug":"virtualhost-directives-httpd-conf-accounts-gone","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/virtualhost-directives-httpd-conf-accounts-gone\/","title":{"rendered":"cPanel Sites Show the Default Page: Restore Missing VirtualHosts in httpd.conf"},"content":{"rendered":"<div class=\"uh-blog-hero\" style=\"margin:0 0 40px;text-align:center;padding:48px 24px;border-radius:20px;background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;box-shadow:0 20px 40px -15px rgba(13,31,60,0.28);position:relative;overflow:hidden;\">\n<div style=\"display:inline-flex;align-items:center;gap:8px;padding:7px 14px;margin-bottom:16px;border:1px solid rgba(0,212,255,0.32);border-radius:999px;color:#DFF8FF;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,212,255,0.10);\"><i class=\"fas fa-database\" style=\"color:#00D4FF;\"><\/i> Backups<\/div>\n<h1 style=\"color:#ffffff;font-size:clamp(32px,5vw,46px);line-height:1.12;margin:0 0 14px;font-weight:800;\">cPanel Sites Show the Default Page: Restore Missing VirtualHosts in httpd.conf<\/h1>\n<p style=\"font-size:18px;color:#EAF6FF;max-width:800px;margin:0 auto;line-height:1.7;\">Missing VirtualHost directives in your Apache configuration? Learn how to restore them in cPanel by rebuilding httpd.conf.<\/p>\n<\/div>\n<div class=\"uh-blog-excerpt\" style=\"border-left:4px solid #00D4FF;padding:18px 20px;margin:0 0 34px;background:#F8FAFC;color:#1F2937;border-radius:0 14px 14px 0;box-shadow:0 8px 28px rgba(13,31,60,0.08);line-height:1.75;\"><strong style=\"color:#0D1F3C;\">Short answer:<\/strong> cPanel builds Apache&#8217;s <code>httpd.conf<\/code> from the account data in <code>\/var\/cpanel\/userdata<\/code>. If the VirtualHost blocks are missing and sites show the default cPanel page, rebuild the file with <code>\/scripts\/rebuildhttpdconf<\/code>, test it with <code>apachectl configtest<\/code>, and restart Apache with <code>\/scripts\/restartsrv_httpd<\/code>. On current cPanel servers the file is at <code>\/etc\/apache2\/conf\/httpd.conf<\/code>.<\/div>\n<nav aria-label=\"Table of contents\" class=\"uh-toc\" style=\"background:#ffffff;border:1px solid #E5E7EB;border-radius:16px;padding:20px 22px;margin:0 0 34px;box-shadow:0 4px 12px rgba(13,31,60,0.08);\">\n<div style=\"font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#176EA5;margin-bottom:10px;\"><i class=\"fas fa-list\" style=\"color:#00D4FF;\"><\/i> In this guide<\/div>\n<ol style=\"margin:0;padding-left:20px;columns:2 260px;column-gap:28px;line-height:1.9;\">\n<li><a href=\"#symptoms\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Symptoms<\/a><\/li>\n<li><a href=\"#why-it-happens\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Why it happens<\/a><\/li>\n<li><a href=\"#step-1-check-the-current-file\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 1: check the current file<\/a><\/li>\n<li><a href=\"#step-2-back-up-and-rebuild\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 2: back up and rebuild<\/a><\/li>\n<li><a href=\"#step-3-test-and-restart-apache\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 3: test and restart Apache<\/a><\/li>\n<li><a href=\"#check-how-apache-sees-one-domain\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Check how Apache sees one domain<\/a><\/li>\n<li><a href=\"#if-the-rebuild-does-not-bring-the-sites-back\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">If the rebuild does not bring the sites back<\/a><\/li>\n<li><a href=\"#step-4-repair-cpanel-if-needed\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Step 4: repair cPanel if needed<\/a><\/li>\n<li><a href=\"#keep-custom-apache-settings-safe\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Keep custom Apache settings safe<\/a><\/li>\n<li><a href=\"#troubleshooting\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Troubleshooting<\/a><\/li>\n<\/ol>\n<\/nav>\n<div class=\"uh-post-content\" style=\"color:#1F2937;font-size:16px;line-height:1.75;\">\n<h2 id=\"symptoms\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Symptoms<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Every site on the server shows the default cPanel or Apache page.<\/li>\n<li style=\"margin:0 0 8px;\">Some sites work, others show the default page or another site&#8217;s content.<\/li>\n<li style=\"margin:0 0 8px;\">The VirtualHost blocks are missing from <code>httpd.conf<\/code>, or the file is much smaller than usual.<\/li>\n<\/ul>\n<h2 id=\"why-it-happens\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-info-circle\" style=\"color:#00D4FF;\"><\/i> Why it happens<\/h2>\n<p style=\"margin:0 0 18px;\">cPanel never expects <code>httpd.conf<\/code> to be edited by hand. It regenerates the file from templates and from each account&#8217;s settings in <code>\/var\/cpanel\/userdata\/USERNAME\/<\/code>. VirtualHosts can disappear when:<\/p>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Someone edited <code>httpd.conf<\/code> directly and a rebuild replaced it.<\/li>\n<li style=\"margin:0 0 8px;\">A rebuild ran while the disk was full, leaving a truncated file.<\/li>\n<li style=\"margin:0 0 8px;\">The userdata files for accounts are missing or damaged, for example after a partial restore.<\/li>\n<li style=\"margin:0 0 8px;\">A custom template or include contains an error.<\/li>\n<\/ul>\n<h2 id=\"step-1-check-the-current-file\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 1: check the current file<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>ls -l \/etc\/apache2\/conf\/httpd.conf\ngrep -c \"&lt;VirtualHost\" \/etc\/apache2\/conf\/httpd.conf     # number of VirtualHost blocks\ndf -h \/etc \/var                                         # make sure the disk is not full<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Older guides use <code>\/usr\/local\/apache\/conf\/httpd.conf<\/code>. That path belongs to EasyApache 3; current servers use EasyApache 4 and the path above.<\/p>\n<h2 id=\"step-2-back-up-and-rebuild\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 2: back up and rebuild<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>cp -a \/etc\/apache2\/conf\/httpd.conf \/root\/httpd.conf.$(date +%F-%H%M)\n\n\/scripts\/rebuildhttpdconf\ngrep -c \"&lt;VirtualHost\" \/etc\/apache2\/conf\/httpd.conf<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">The count should now be roughly two per domain (one for HTTP and one for HTTPS).<\/p>\n<h2 id=\"step-3-test-and-restart-apache\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 3: test and restart Apache<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>apachectl configtest        # should print \"Syntax OK\"\n\/scripts\/restartsrv_httpd<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">Open a few sites and check they show their own content.<\/p>\n<h2 id=\"check-how-apache-sees-one-domain\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-globe\" style=\"color:#00D4FF;\"><\/i> Check how Apache sees one domain<\/h2>\n<p style=\"margin:0 0 18px;\">Apache can list every VirtualHost it loaded, with the file and line where each one is defined. This shows quickly whether a domain is missing or attached to the wrong IP address:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>apachectl -S 2&gt;\/dev\/null | grep -i example.com\n\n# Ask the server for the site directly, bypassing DNS\ncurl -sI -H \"Host: example.com\" http:\/\/SERVER_IP\/ | head -n 5<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">If <code>apachectl -S<\/code> does not list the domain, its VirtualHost is missing. If it is listed under a different IP address than the one DNS points to, change the account&#8217;s IP in WHM or fix the DNS record.<\/p>\n<h2 id=\"if-the-rebuild-does-not-bring-the-sites-back\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> If the rebuild does not bring the sites back<\/h2>\n<p style=\"margin:0 0 18px;\">The rebuild only works if the account data is intact. Check that each affected account has its userdata files:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>ls \/var\/cpanel\/userdata\/USERNAME\/\n# expect: main, the domain file(s) and their _SSL versions<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">If files are missing, refresh cPanel&#8217;s data and rebuild again:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>\/scripts\/updateuserdatacache\n\/scripts\/rebuildhttpdconf\n\/scripts\/restartsrv_httpd<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">If the account data was lost, restore it from a backup: the userdata is part of every cPanel account backup. See our <a href=\"https:\/\/underhost.com\/blog\/cpanel-backup-and-restore-a-domain-account-via-ssh\/\">cPanel backup and restore guide<\/a>.<\/p>\n<h2 id=\"step-4-repair-cpanel-if-needed\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Step 4: repair cPanel if needed<\/h2>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>\/scripts\/upcp --force<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">A forced update reinstalls cPanel&#8217;s templates and scripts. Run it if the rebuild script itself reports errors.<\/p>\n<h2 id=\"keep-custom-apache-settings-safe\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Keep custom Apache settings safe<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">Never edit <code>httpd.conf<\/code> directly. cPanel overwrites it.<\/li>\n<li style=\"margin:0 0 8px;\">For server-wide settings, use <strong>WHM &gt; Service Configuration &gt; Apache Configuration &gt; Include Editor<\/strong>.<\/li>\n<li style=\"margin:0 0 8px;\">For one domain, put custom directives in an include file under <code>\/etc\/apache2\/conf.d\/userdata\/<\/code>, as cPanel documents, then rebuild.<\/li>\n<li style=\"margin:0 0 8px;\">Keep enough free disk space, so rebuilds never write a partial file.<\/li>\n<\/ul>\n<h2 id=\"troubleshooting\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Troubleshooting<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Problem<\/th>\n<th style=\"padding:14px;text-align:left;\">Likely cause<\/th>\n<th style=\"padding:14px;text-align:left;\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">apachectl configtest fails<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">An error in an include or custom template<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Read the line it names, fix or remove the include, and rebuild.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Only one site is missing<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">That account&#8217;s userdata is damaged<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Run \/scripts\/updateuserdatacache, or restore the account from backup.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Sites show the wrong site<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Two accounts claim the same IP and domain, or DNS points to another IP<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Check the account IPs in WHM and the DNS records.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div aria-hidden=\"true\" class=\"uh-section-divider\" style=\"width:min(100% - 32px, 1080px);margin:44px auto;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:18px;pointer-events:none;\"><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,255,0.40),rgba(23,110,165,0.24),transparent);\"><\/span><img alt=\"\" decoding=\"async\" height=\"32\" loading=\"lazy\" src=\"https:\/\/cdn.underhost.com\/android-chrome-192x192.webp\" style=\"width:32px;height:32px;display:block;border-radius:8px;filter:drop-shadow(0 0 14px rgba(0,212,255,0.30));\" width=\"32\"\/><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(23,110,165,0.24),rgba(0,212,255,0.40),transparent);\"><\/span><\/div>\n<\/div>\n<div class=\"uh-blog-cta\" style=\"background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;padding:36px 24px;border-radius:20px;text-align:center;margin:44px 0;box-shadow:0 20px 40px -15px rgba(13,31,60,0.32);\">\n<h2 style=\"margin:0 0 12px;font-size:28px;line-height:1.25;color:#ffffff;\">Need help with this?<\/h2>\n<p style=\"font-size:17px;margin:0 auto 22px;color:#EAF6FF;max-width:720px;line-height:1.7;\">Sites down after a configuration change? Our team can repair Apache and cPanel quickly.<\/p>\n<p><a href=\"https:\/\/underhost.com\/server-management.php\" style=\"background:linear-gradient(90deg,#00D4FF,#0077FF);color:#ffffff;padding:13px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;\">See server management plans<\/a><a href=\"https:\/\/customerpanel.ca\/client\/\" style=\"background:transparent;color:#ffffff;padding:12px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;border:1px solid rgba(255,255,255,0.32);\">Contact @CustomerPanel<\/a><\/div>\n<div class=\"uh-faq-section\" id=\"faq\" style=\"margin:34px 0;scroll-margin-top:90px;\">\n<h2 style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:0 0 18px;border-bottom:2px solid rgba(0,212,255,0.22);padding-bottom:10px;\">Frequently asked questions<\/h2>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Where is httpd.conf on a cPanel server?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">On current servers with EasyApache 4, at \/etc\/apache2\/conf\/httpd.conf.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">How do I rebuild Apache&#8217;s configuration on cPanel?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Run \/scripts\/rebuildhttpdconf, then test with apachectl configtest and restart with \/scripts\/restartsrv_httpd.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I edit httpd.conf by hand?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. cPanel regenerates it. Use the Include Editor or userdata include files instead.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Why do my sites show the default cPanel page?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Apache has no VirtualHost for the domain, or the domain points to a different IP address than its account uses.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">What if the rebuild does not help?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Check the account data in \/var\/cpanel\/userdata, refresh it with \/scripts\/updateuserdatacache, or restore it from backup.<\/p>\n<\/div>\n<\/div>\n<p><!-- uh-related-start --><\/p>\n<div style=\"background:#F4F8FC;border:1px solid #DCE7F3;border-radius:14px;padding:18px 22px;margin:32px 0 8px;\">\n<h2 style=\"margin:0 0 12px;font-size:22px;\">Related guides<\/h2>\n<ul style=\"margin:0;padding-left:20px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/your-data-is-worth-more-than-you-think-world-backup-day-2026\/\">Your Data Is Worth More Than You Think &#8211; World Backup Day 2026<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/the-importance-of-regular-backups-for-your-website\/\">The Importance of Regular Backups for Your Website<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/automated-cpanel-backup-script-using-cpanel-api\/\">Automating cPanel Backups: Off-Site Options and Safer Methods<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/clean-malware-and-restore-your-hacked-website-with-hourly-server-management\/\">Clean Malware and Restore Your Hacked Website with Hourly Server Management<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/automatic-cpanel-backup-domain-mysql-with-cron-php\/\">Automatic cPanel Backups: A Safer Way to Schedule Them<\/a><\/li>\n<\/ul>\n<\/div>\n<p><!-- uh-related-end --><br \/>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"Where is httpd.conf on a cPanel server?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"On current servers with EasyApache 4, at \/etc\/apache2\/conf\/httpd.conf.\"}}, {\"@type\": \"Question\", \"name\": \"How do I rebuild Apache's configuration on cPanel?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Run \/scripts\/rebuildhttpdconf, then test with apachectl configtest and restart with \/scripts\/restartsrv_httpd.\"}}, {\"@type\": \"Question\", \"name\": \"Can I edit httpd.conf by hand?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. cPanel regenerates it. Use the Include Editor or userdata include files instead.\"}}, {\"@type\": \"Question\", \"name\": \"Why do my sites show the default cPanel page?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Apache has no VirtualHost for the domain, or the domain points to a different IP address than its account uses.\"}}, {\"@type\": \"Question\", \"name\": \"What if the rebuild does not help?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Check the account data in \/var\/cpanel\/userdata, refresh it with \/scripts\/updateuserdatacache, or restore it from backup.\"}}]}<\/script><\/p>\n<h2 id=\"sources\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-book\" style=\"color:#00D4FF;\"><\/i> Sources<\/h2>\n<ul style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/whm\/service-configuration\/apache-configuration\/include-editor\/\">cPanel documentation: Include Editor<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/docs.cpanel.net\/ea4\/apache\/modify-apache-virtual-hosts-with-include-files\/\">cPanel documentation: Modify Apache VirtualHosts with include files<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Missing VirtualHost directives in your Apache configuration? Learn how to restore them in cPanel by rebuilding httpd.conf.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[125,108,122,123,187,109],"class_list":["post-3515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backups","tag-tag-backups","tag-tag-cpanel","tag-tag-dns","tag-tag-domains","tag-easyapache","tag-tag-whm"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3515"}],"version-history":[{"count":9,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3515\/revisions"}],"predecessor-version":[{"id":6973,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3515\/revisions\/6973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}