记录一下这个困扰我一天的问题。
首先是下载那个txt,然后安装服务器的nginx(安装过程百度一下,非常简单),我是新建了一个文件夹,把这个txt放了进去
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201107151532990.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3E4Nzk5MzY4MTQ=,size_16,color_FFFFFF,t_70#pic_center)
接下来配置nginx的访问路径,去编辑conf下的nginx.conf
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201107151652100.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3E4Nzk5MzY4MTQ=,size_16,color_FFFFFF,t_70#pic_center)
编辑访问地址,端口号,以及txt的路径。
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201107152018493.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3E4Nzk5MzY4MTQ=,size_16,color_FFFFFF,t_70#pic_center)
保存好,然后重新加载nginx。
这时候访问ip或者域名下的txt文件就ok了。
![在这里插入图片描述](https://img-blog.csdnimg.cn/2020110715220165.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3E4Nzk5MzY4MTQ=,size_16,color_FFFFFF,t_70#pic_center)
但是!在网页授权域名里面配置域名时报错了!
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201107152304795.png#pic_center)
苦思冥想了好几天,终于在高人指点下搞定了 很容易 就是在放置txt的文件中,随便扔个index.html就行了,里面随便写个h1啊啥的 亲测有用!