做百度收录,需要给根目录上传验证文件
只能用nginx 反代实现 Discourse没有传统意义上的根目录
如果你是用1panle安装的 在网站中找到对应的网站
伪静态规则中输入
`location = /123.html {`
`allow all;`
`root /www/sites/discourse.org.cn/index;`
`}`
然后在目录/opt/1panel/apps/openresty/openresty/www/sites/discourse.org.cn/index 中放入123.html
这样就实现了直接访问某一个文件的效果 https://discourse.org.cn/123.html
我是通过百度的一个浏览器插件验证的 这个教程在某个比较不起眼的文档网页里面


