Letsencrypt Validate Directory

I would like to restrict access to my server except from certain IP’s.

When the letsencrypt servers retrieve a file from my server for verification is there a standard directory this comes from? I can then whitelist that directory to be accessed by any IP address.

Hi @matthewh,

It will always be a random file path within /.well-known/acme-challenge under your web root.

Exactly the info I needed and works fine.

Added this to httpd.conf:

Directory /var/www/html/.well-known/acme-challenge/
allow from all
/Directory

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.