I have deployed django website on digital ocean’s droplet and attached it to the bluehost domain. I’ve already added all the nameservers as you can see here: https://www.whatsmydns.net/#NS/pakistanrozgaar.com I’m using certbot SSL certificate on my server. The problem is that my website doesn’t load. It’s giving this error:
But sometimes when I restart the apache server from console, it starts working again but after a few minutes, it goes down. I’ve rechecked apache configuration, SSL configuration, Django code, and also allowed ports from ufw but haven’t got any luck.
Some reference images: Example link Example link Example link Example link Example link Example link Example link
Kindly guide me.
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!
From the provided screenshots I can see the error - The site can't be reached. This is usually due to an issue with your A records for the root and www domain. Having said that, from the provided screenshots, I can confirm everything looks in order and pretty good. As such can you let me know if you recently changed your DNS?
If you did, please note you’ll need to wait up to 24 hours for the DNS changes to fully propagate.
Anyway, let’s assume it’s not that. When you restart apache, do you check if the service is online prior to the restart or not?
Regards, KFSys
@KFSys is spot on with this, I checked the domain and it seems to be loading for me. If it still isn’t loading for you I would suggest clearing your dns cache.
for windows:
ipconfig /flushdns
Linux:
sudo /etc/init.d/nscd restart
and os x changes things too much, here is a list of how to do it for each one.
https://help.dreamhost.com/hc/en-us/articles/214981288-Flushing-your-DNS-cache-in-Mac-OS-X-and-Linux
Also, I would suggest using googles DNS (8.8.8.8 and 8.8.4.4 ) or they may have a different address for your country depending on where you are. It is possible that your isp DNS servers only update every 72 hours or more!
Mine told me they only sync DNS once a week so I changed to google DNS!
Hope this helps!
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.