Nginxのリバースプロキシ設定は以下の4パターンになる。
パターン | location | proxy_pass |
---|---|---|
1 | /path | /reverse-path |
2 | /path | /reverse-path/ |
3 | /path/ | /reverse-path |
4 | /path/ | /reverse-path/ |
これに対し、4パターンのリクエストを投げて実験を行った。
- http://example.com/path
- http://example.com/path/
- http://example.com/path-test
- http://example.com/path/test