Steps Taken / Output produced:
- Set up a sample blog app from a tutorial in django
- Using a droplet from digital ocean, I successfully hosted this django project online.(without a domain name, just using the IP address)
- Got a domain name from namecheap and linked it with digital ocean (followed every tutorial and crossreferenced things to make sure they were right)
3B) This is where it goes downhill… I forgot to check if the website was working with the new domain name ‘ericlbaker.me’ before I started setting up a free SSL from “LetsEncrypt” to get everything to redirect to ‘https’.
- Using the certbot full auto configuration, I set up the certificate associated with my test website. No errors.
- I try to go to my website, typing the domain name with ‘http’ https’ and ‘www’ variations, all of which redirect (as they should) to ‘https://ericlbaker.me’ or ‘https://www.ericlbaker.me’. However, I no longer see my web app as I did before. Only a 404 BAD REQUEST. I even tried accessing with various ports that I tried to run it from on the digital ocean console.
- I check the certificate on “SSLLabs.com” and everything seems to be okay until I go into the details. Under “HTTP REQUESTS” section it says ‘https://ericlbaker.me/ (HTTP/1.1 400 Bad Request)’.
- I began adding ipv6 configurations as well but stopped because I wanted to sort this stuff out first.
I am not sure what else to try because I have spent 2 days in a row in front of my computer going through various tutorials and I feel at this point I may start editing things that just dig a deeper hole for myself. Thanks for your time!!
My web server is (include version): nginx /1.14.0
The operating system my web server runs on is (include version): Ubuntu 18.04
My hosting provider, if applicable, is: Digital Ocean
I can login to a root shell on my machine (yes or no, or I don’t know): yes