Nginx 默认不能访问 点开头的目录,需要在配置文件中授权访问
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.html index.htm; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules } #添加这一段 location ~ /.well-known { allow all; } #或者使用伪静态 ,txt文件放在站点根目录下面 rewrite /.well-known/pki-validation/(.*)$ /$1 last; }
Copyright © 1998 - Gworg, Inc. All Rights Reserved. 江苏光网数字认证有限公司版权所有
苏ICP备15058404号 苏公网安备32058202010008号