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.消費者に提供するURLを変更できません。たとえば、消費者は次の方法でしかリクエストを送信できませんでした
"/book?name=ruby_lang&published_at=2014"
ただし、他の URL ではありません。