【发布时间】:2016-06-26 03:54:39
【问题描述】:
我已经设法配置我的 Nginx(在 Nodejs 之上)以提供没有 html 扩展名的静态文件(例如,转到 site.com/about 服务于 about.html 页面) - 在这些过去问题的帮助下:how to serve html files in nginx without showing the extension in this alias setup 和https://serverfault.com/questions/346994/hide-html-file-extensions-using-nginx-rewrites
但我无法弄清楚如何设置 Cloudflare 页面规则以使用此设置(当前页面规则设置为包括静态 html 文件以及 js、css 等)。
如何配置 cloudflare 以在用户转到 site.com/about 时提供 about.html 页面,并在用户转到 site.com/about/team 时提供 team.html 页面?我需要做一些特别的事情,还是 Nginx 设置就足够了?
【问题讨论】:
标签: node.js nginx cloudflare