Follow the below steps to enable ACME challenge mkdir .well-known unde var/www/example.com(document root) mkdir acme-challenge under .well-known create file test.txt under acme-challenge goto /etc/nginx/sites-avaialble/example.com and add the below lines You can see the example below.