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.
I have created the droplet(django one click app) and it was working good Unable to access my droplet using ipaddress now?
My droplet was up and running and then I added the domain name to my droplet then at first It was showing an error (BAD REQUEST(400)) then I have gone through this link to resolve that error because I was able to access the droplet using IP address but I was unable to load it using domain name:
When I connected to godaddy they have told me that you need to wait for 49 hours and after that, you will be able to access your app using domain name but their answer was unsatisfactory so I tried below steps:
After doing this my error is not resolved then I tried these steps below:
I did three things:
First, I updated my ALLOWED_HOSTS:
ALLOWEDHOSTS = [‘12.345.67.890’, 'sub.domain.com’, ’www.sub.domain.com’]
Then, I also edited the servername setting in my nginx configuration:
server_name 12.345.67.890 sub.domain.com www.sub.domain.com;
Lastly, I restarted nginx and rebooted the machine to make sure it all worked:
sudo service nginx restart
But (sudo service nginx restart) this step failed and now I am unable to access my droplet even from the IP address it is showing that my (IP address has refused to connect by using IP address and using domain name too).
I have started various steps like rebooting the droplet, load from the recovery, power cycle etc but now of that worked and I am still unable to access the droplet.
Kindly help me with this as I have started using this platform since yesterday.
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.×