server {
listen 80;
server_name domain.com;
root /tmp/domain;
location ~ /.well-known {
allow all;
}
}
将上面的配置文件编辑在nginx的配置文件中。
mkdir -p /tmp/domain/.well-known/pki-validation
echo verify_string > /tmp/domain/.well-known/pki-validation/fileauth.txt