On Wed, Apr 12, 2023 at 04:04:54PM +0200, Mike Fischer wrote:
[..]
>Did you actually test the challenge?
>Place a small text file into the challenge dir:
># echo 'Test' > /var/www/acme/test
>
>The use something like curl to see what happens when you try to access this 
>file:
>curl --head --url 'http://www.example.com/.well-known/acme-challenge/test'
>and 
>curl --head --url 'http://example.com/.well-known/acme-challenge/test'

Thanks, Mike. Testing with curl led me to figuring out I was missing a
stanza in my httpd.conf. Oops.


Once the following was added back to httpd.conf:

 location "/.well-known/acme-challenge/*" {
  root "/acme"
  request strip 2
 }

things returned to normal:

curl -6 --head --url
https://www.example.com/.well-known/acme-challenge/test
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 5
Content-Type: application/octet-stream
Date: Wed, 12 Apr 2023 14:25:37 GMT
Last-Modified: Wed, 12 Apr 2023 14:22:40 GMT
Server: OpenBSD httpd
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload


Now to track down who accidentally deleted the section of config!

Cheers.

Reply via email to