Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Deleted Account pointed at server redirection

Discussion in 'General Discussion' started by Damian2Cubed, Feb 8, 2019.

  1. Damian2Cubed

    Damian2Cubed Member

    Joined:
    Sep 28, 2018
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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)
     
  2. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,887
    Likes Received:
    120
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Damian2Cubed

    Damian2Cubed Member

    Joined:
    Sep 28, 2018
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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
    
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Damian2Cubed

    Damian2Cubed Member

    Joined:
    Sep 28, 2018
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Ireland
    cPanel Access Level:
    Root Administrator
    Nothing there. Everything that was removed is removed.

    Worst is that if you google one of deleted sites its showing website that is first on list in WHM...
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice