# This adds a the acme challenge directory to # your hosts config file. You will only need # this on port 80. The following snippet shows # how to use in on a HTTP server that only # redirects to HTTPS otherwise. it's important # to wrap the rest into a "location /" block. # #server { # listen 80 default_server; # listen [::]:80 default_server; # # include "acme-challenge"; # location / { # return 301 https://$host$request_uri; # } #} location /.well-known/acme-challenge { alias @CHALLENGEDIR@; }