it will be empty most of the time except while a challenge is actually being validated. However, the response suggests that your server is not serving the challenge file. Can you check your web server configuration to see if there’s a reason why resources under .well-known won’t be served?
Also, what command are you running to try to get your cert?
This is the command sudo letsencrypt certonly -a webroot --webroot-path=/var/www/html -d website.com -d www.website.com
(I also tried webroot-path=/home/username/projectname/)
I’m not really sure, I can tell you that I’m running a Django app. It’s actually my first time using Django on a DO server.
I’ve looked at the nginx logs and it states open() "/usr/share/nginx/html/.well-known/acme-challenge/cjcp80wkgbW2qJ9j2llG3LSoWkLY8z0GFfGdMS7lohQ" failed (2: No such file or directory), client: 66.133.109.36, server: website.com, request: "GET /.well-known/acme-challenge/cjcp80wkgbW2qJ9j2llG3LSoWkLY8z0GFfGdMS7lohQ HTTP/1.1", host: "website.com"
So:
/usr/share/nginx/html/ -> this only has a index.html file, that seems to be the nginx index page. So navigating to the www version of my site brings this page up. My site is running everything through gunicorn and configured to load over the non-www version.
I’m running the command from the root directory. I’ve seen this video and he appears to run the command from /home/username/projectname/letsencrypt
My django project structure is like so if it helps:
This is just a small difference with the guide when using django! Thanks for the help! I’m sure i’ll have further questions. Will donate tonight once config’d!