First, you shouldn't be using a CNAME at the zone apex. It will have strange consequences that will be really difficult to debug.
Second, creatorbrandedsite.tk doesn't match any of learnbot.tk, www.learnbot.tk or *.learnbot.tk so no servers match when creatorbrandedsite.tk is in the host request header. The request, then, will be served by the default server -- that's either one you've identified with default_server or the first one defined in the NGINX config. Is that default server set up to handle requests correctly?
Third, you'll likely get more answers asking things like this on Server Fault
@irgeek
thanks a ton for your response, but I don't quite understand what the solution you are proposing is here.. (I did try to read the article you listed)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
First, you shouldn't be using a CNAME at the zone apex. It will have strange consequences that will be really difficult to debug.
Second,
creatorbrandedsite.tk
doesn't match any oflearnbot.tk
,www.learnbot.tk
or*.learnbot.tk
so no servers match whencreatorbrandedsite.tk
is in the host request header. The request, then, will be served by the default server -- that's either one you've identified with default_server or the first one defined in the NGINX config. Is that default server set up to handle requests correctly?Third, you'll likely get more answers asking things like this on Server Fault
@irgeek thanks a ton for your response, but I don't quite understand what the solution you are proposing is here.. (I did try to read the article you listed)