我有一个 Nginx 服务器,并禁用了隐藏文件 nginx_vhost.conf
## Disable .htaccess and other hidden files
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
Run Code Online (Sandbox Code Playgroud)
但是 LetsEncrypt 需要访问该 .well-known目录。
如何允许.well-known目录并拒绝其他隐藏文件?