title | tags | force_publish_time | force_update_time |
---|---|---|---|
Nginx 输出 json 格式目录 |
踩坑 |
2019-01-16 16:12:02 UTC |
2019-01-16 16:13:32 UTC |
autoindex on;
autoindex_format json;
Who needs a backend?
在写白嫖文库,希望能够完全静态也不需要有 build,所以需要能够拿到后端目录的内容。
原来以为要解析 autoindex 的 html 输出,但是不同版本的 nginx 会给出不一样的格式。用 json 就没问题了。