my droplet is from digitalocean.com and domain is from godaddy.com.when website works fine by ip but domain throws "disallowed host" error.
the error is:
“DisallowedHost at /
Invalid HTTPHOST header: ‘thesis-experiment.com’. You may need to add 'thesis-experiment.com’ to ALLOWEDHOSTS.”
i have had the names of my domain in both nginx site-available and my ALLOWED_HOSTS in settings.py but it still does not work.
and i have put ns1.digitalocean.com, ns2.digitalocean.com and ns3.digitalocean.com in nameservers of godaddy.com but still no luck.