1

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

nGinx

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...

Questions

What am I missing ?

2 Answers 2

1

try to change the config block to

location ~ .well-known/ {
         allow all;
         root /var/www/laravel;
}
Sign up to request clarification or add additional context in comments.

Comments

1

This worked

location ~ /.well-know/acme-challenge {
        allow all;
        root /var/www/laravel;
    }

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.