By Pramod Gupta
I have created a docker droplet on digital ocean to host my application. The application is working well, when called from a browser using ip address 167.xx.xxx.xx. I have booked a domain name using godaddy and have assign ns1, ns2, ns3 in godaddy as instructed. I have also created a “A” variable in digital ocean to assign domain name to ip address I can ping the domain name (www.xxxxxxx.xyz) from command prompt and get reply, but when I use a browser to launch the application using domain name, it gives me error “Invalid Host header” I have another droplet in digital ocean, which is not a docker droplet, which works well for same setting
Please help
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
It sounds like that your application is rejecting the access from your domain name. What is the exact application that you’ve deployed on your new droplet? My guess would be that you might have to add your domain name to the trusted source list of your application, but of course, this would depend on the application itself.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.