Deleted Account pointed at server redirection

Damian2Cubed

Member
Sep 28, 2018
16
1
3
Ireland
cPanel Access Level
Root Administrator
Hello,

I have small issue with my WHM.

I just did a cleanup of accounts that I no longer needed and I noticed that domains that are still pointing to my server are being redirected to first website on list in WHM.

How can I edit this so this will not happen or some default page would appear?

Sorry if this is was already asked but I couldn't find anything (don't know how to call this to be honest)
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hello,


This actually shouldn't be occurring on a shared IP address for connections over port 80. The default page is there specifically to handle this issue. Can you show me what's in Apache's document root currently?

Code:
ls -lah /var/www/html/
Also with what @dalem suggested you might also want to check out these threads:
SOLVED - Hostname goes to Default Web Page
 

Damian2Cubed

Member
Sep 28, 2018
16
1
3
Ireland
cPanel Access Level
Root Administrator
Hello,

Thanks for responses.

This is what I get when I run your command.

Code:
total 56K
drwxr-xr-x 4 root root 4.0K Jan 30 03:21 .
drwxr-xr-x 4 root root 4.0K Jan 30 03:21 ..
-rw-r--r-- 1 root root  229 Jan 30 03:03 400.shtml
-rw-r--r-- 1 root root  207 Jan 30 03:03 401.shtml
-rw-r--r-- 1 root root  203 Jan 30 03:03 403.shtml
-rw-r--r-- 1 root root  204 Jan 30 03:03 404.shtml
-rw-r--r-- 1 root root  216 Jan 30 03:03 413.shtml
-rw-r--r-- 1 root root  243 Jan 30 03:03 500.shtml
-rw-r--r-- 1 root root  11K Jan 30 03:03 cp_errordocument.shtml
-rw-r--r-- 1 root root  163 Jan 30 03:03 index.html
drwxr-xr-x 2 root root 4.0K Aug 24  2017 suspended.page
drwxr-xr-x 3 root root 4.0K Aug 24  2017 .well-known
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hi @Damian2Cubed

That looks pretty normal, are you aware if these sites still have DNS zones on the server? You can see these in /var/named/
If they do you can easily remove them through WHM by going to WHM>>DNS Functions>>Delete A DNS Zone
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,252
313
Houston
Hi @Damian2Cubed


Can you do the following and let me know if anything changes:



Code:
/scripts/updateuserdomains
/scripts/updateuserdatacache
mv /etc/apache2/conf/httpd.conf{,.bk}
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
/scripts/rebuilddnsconfig