阿里云免费证书文件验证,nginx返回403,已按照要求建立/.well-known/pki-validation/目录,上传fileauth.txt文件。

解决:

在需要的server段内加

 

location ~ /.well-known {

allow all;

}