Skip to main content

CNAME not working

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey there! I believe the 4th line is the root cause of your issue:
    Additional details ... wwww is not configured as a subdomain at MLDfoundation.org, resolving is all done via DNS.

    There needs to be something setup in Apache for that request to be routed properly on the server side. If not, you'll receive the "Sorry" page since Apache doesn't know how to handle that request. If you setup the subdomain on the server I would expect this to start working instantly since the DNS is already in place. Can you try that and see if that works?
    0
  • OregonDean
    Hi there, @cPRex - thanks. I don't fully understand your suggestion. It's my understanding that DNS resolves first before Apache is called, isn't that how the call gets to Apache in the first place? Also, these are two separate WHM accounts on the same server so I am not sure how to redirect inside Apache to the other account.
    Hey there! I believe the 4th line is the root cause of your issue: Additional details ... wwww is not configured as a subdomain at MLDfoundation.org, resolving is all done via DNS. There needs to be something setup in Apache for that request to be routed properly on the server side. If not, you'll receive the "Sorry" page since Apache doesn't know how to handle that request. If you setup the subdomain on the server I would expect this to start working instantly since the DNS is already in place. Can you try that and see if that works?

    0
  • George_Fusioned
    I understand you're trying to do a redirect here, but that needs to be done in the webserver level since both domains are hosted on the same server/IP. You're pointing wwww.MLDfoundation.org to MLD.foundation which in turn resolves to 52.89.98.119 and at this point your webserver is taking over. The request header contains wwww.MLDfoundation.org not MLD.foundation, as such, since you already have MLDfoundation.org as an account on that server, but no wwww subdomain, you will get the sorry message. You'd need to create an wwww subdomain, then inside there create an .htaccess file with a redirect to MLD.foundation
    0
  • cPRex Jurassic Moderator
    Exactly what @wintech2003 said - everything starts with DNS, but once the request reaches the server you'll need something setup in Apache to read and serve content.
    0
  • OregonDean
    All fixed - thanks. I created a wwww sub-domain in mldfoundation.org and used the cPanel sub-domain redirect to MLD.foundation ... which, as described above, must be an Apache redirect.
    0
  • cPRex Jurassic Moderator
    @OregonDean - I'm glad that worked well for you!
    0

Please sign in to leave a comment.