Skip to main content

Redirect visits from domains that are no longer hosted

Comments

7 comments

  • cPanelMichael
    Hello :) Note that access attempts to domain names that resolve to your server but do not have a VirtualHost entry should result in the user seeing the default cPanel page. The warning message itself is discussed further in one of your previous threads: Named: external view client is denied Thank you.
    0
  • postcd
    is there any workaround how to redirect these visits to some common page which tells that the hosting account for this domain is no longer on this server?
    0
  • cPanelMichael
    You can modify the default website page via: "WHM Home " Account Functions " Web Template Editor" Or, setup up VirtualHosts for specific domain names that you want to redirect. Thank you.
    0
  • postcd
    [quote="cPanelMichael, post: 1661992">You can modify the default website page via: "WHM Home " Account Functions " Web Template Editor"
    This do NOT help, because the domain dont resolve to any website, it just timeout. ERROR: I could not get any A records for XY WARNING: One or more of your nameservers did not return any of your NS records. so how i can do that for all accounts that dont resolve, or all requests that dont match any cpanel account will see certain webpage, no timeout? You mentioned VirtualHosts, can you please advice on rule?
    0
  • cPanelMichael
    If a domain name does not resolve to your server, then you can not control what content it's served or where it's redirected to. Thank you.
    0
  • postcd
    [quote="cPanelMichael, post: 1663721">If a domain name does not resolve to your server, then you can not control what content it's served or where it's redirected to. Thank you.
    You are wrong. Domain is pointed to the existing nameservers and my server IP. Only there are no A records and such in WHM, because the account for that domain was terminated long time ago. My question remains.
    0
  • cPanelMichael
    It depends on how the domain name is pointed to your server. If the "A" record is configured at it's DNS host, then it should resolve to your server. Otherwise, you must create the "A" record on your server or else the domain name will fail to resolve. Simply having the name servers set at the registrar is not enough. Thank you.
    0

Please sign in to leave a comment.