Reputation: 4282
I'm following this tutorial to generate a SSL certificate for my server but I'm getting this error.
Failed authorization procedure. example.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://example.com/.well-known/acme-challenge/OdiQ9qPI7vwc-KVBOwc6BQulaN1827zzfx2ipqznmNM: " 404 Not Found
location ^~ /.well-known/ {
allow all;
root /var/www/laravel;
}
nginx-t
does not return any error.
If I create a folder test
and a file text.txt
I'm able to access it with http://example.com/.well-known/test/text.txt
. I tried removing the folder well-know
, set chmod 0777
nothing is working...
What am I missing ?
Upvotes: 1
Views: 1854
Reputation: 4282
This worked
location ~ /.well-know/acme-challenge {
allow all;
root /var/www/laravel;
}
Upvotes: 1
Reputation: 4346
try to change the config block to
location ~ .well-known/ {
allow all;
root /var/www/laravel;
}
Upvotes: 1