fix(nginx): 验证文件改用 root+try_files,443 层挂载 verify-root 直连避免 403
Made-with: Cursor
This commit is contained in:
11
verify-root/README.md
Normal file
11
verify-root/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# 站点根验证文件(微信、域名所有权等)
|
||||
|
||||
将平台提供的 **`xxxxxxxx.txt`** 或 **`.html`** 放在本目录,访问:
|
||||
|
||||
`https://你的域名/文件名`
|
||||
|
||||
## 若出现 403
|
||||
|
||||
- 文件权限:`chmod 644 *.txt`,目录 `chmod 755`(或 `chmod -R a+rX .`)
|
||||
- 容器需能读挂载目录(Podman/SELinux 可尝试 `:Z` 或 `chcon`,见部署文档)
|
||||
- 确保 **`docker-compose` 中 `yh_nginx` 与 `yh_web` 均挂载 `./verify-root:/verify-root`**
|
||||
Reference in New Issue
Block a user