You bring your web app in a
- GitHub repo
- App Platform handles deployments and builds
- DNS, HTTPS, CDN, DDoS Mitigation, Vertical Scaling, Horizontal Scaling, and more.
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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×