Hi all;
I’m running my server (Debian 7) through nginx 1.6.2, and I can’t seem to get letsencrypt working properly.
I’ve set my virtualhosts and default to have this in each server block
location ^~ /.well-known/acme-challenge/ {
alias /var/www/acme-challenge/;
}
Running
certbot certonly -a webroot --webroot-path=/var/www/acme-challenge -d |MYDOMAIN| -d www.|MYDOMAIN|
Gives me
Failed authorization procedure. |MYDOMAIN| (http-01): urn:acme:er ror:unauthorized :: The client lacks sufficient authorization :: Invalid re sponse from http:/|MYDOMAIN|/.well-known/acme-challenge/rGOsg6v7 ISu_u9xu1JBv_kgo-oOoQu6rHNY2uUtRR2U: "
404 Not Found404 Not Found
"
Nginx logs show that it is being routed correctly
2017/05/02 20:50:38 [error] 32392#0: *4 open() “/var/www/acme-challenge/rGOsg6v7ISu_u9xu1JBv_kgo-oOoQu6rHNY2uUtRR2U” failed (2: No such file or directory)
I do have root access to my server
I put a index.html in /var/www/acme-challenge/ and trying to go to http://|MYDOMAIN|/.well-known/acme-challenge/ does show it.
I’m at a loss for why this isn’t working, is anyone able to help?