Last active
December 3, 2018 04:46
-
-
Save usagi/d6b55212aeb300ee32437ed7e6d63d91 to your computer and use it in GitHub Desktop.
nginx `location ~` 正規表現でマッチした部分文字列を回収して使う方法 ref: https://qiita.com/usagi/items/b90b7fb3e9aa5f528ffc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location ~ ^/packages/(?<author>[a-z]+)/(?<name>[a-z]+)/?$ | |
| { | |
| proxy_pass http://127.0.0.1:5984/packages/_design/main/_view/main?key="$author/$name"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment