我希望我的 Nginx 将动态 url 作为静态页面提供,例如
given a url "/book?name=ruby_lang&published_at=2014" ,
the nginx will serve a static file (which is generated automatically ) named as:
"book?name=ruby_lang&published_at=2014.html" or:
"book-name-eq-ruby_lang-pblished_at-eq-2014.html"
这可能吗?
笔记:
1.没有静态文件命名:
"book?name=ruby_lang&published_at=2014.html" nor
"book-name-eq-ruby_lang-pblished_at-eq-2014.html"
但是,如果需要,我可以生成它们。
2.我无法更改提供给消费者的网址。例如,我的消费者只能通过
"/book?name=ruby_lang&published_at=2014"
但不是与任何其他网址。