1、將下載的txt文件放入/usr/local/nginx/html/目錄下面。

2、修改nginx.cong配置文件中的location標簽
location / {
root html;
index index.html index.htm;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
3、加入完以后記得重啟nginx服務
這樣我們用域名+txt文件在游覽器就能訪問了
然后就妥了
