If you encounter this error, it is likely due to a missing cPanel default page on the server. Follow these steps to resolve the issue:

Solution 1: Reset the Default Page in WHM

1️⃣ Log in to WHM as the root user.
2️⃣ Navigate to:
WHM → Account Functions → Web Template Editor
3️⃣ Click Revert to Default to restore the missing default page.
4️⃣ Refresh the browser to check if the issue is resolved.

Solution 2: Manually Add Apache Configuration Entry

If multiple domains are affected, you may need to update the Apache configuration manually.

1️⃣ Open the httpd.conf file in a text editor:

vi /etc/httpd/conf/httpd.conf

2️⃣ Add the necessary configuration entry for the affected domain:

<virtualHost 192.168.1.1:80>

ServerName domain.com

DocumentRoot /home/domain/public_html

</VirtualHost>

3️⃣ Save the file and restart Apache:

service httpd restart

Or

systemctl restart httpd

✅ Ensure that cPanel default pages are not accidentally removed.
✅ Verify that the Apache configuration includes the affected domains.
✅ Restart Apache after making changes to apply settings.

By admin