nginx proxy_pass の末尾 / 有無による挙動の違い
- location /alpha/ で proxy_pass が http://proxy.host/ のように / で終る場合,/alpha/beta/index.html は,ロケーションである最初の/alpha/を除く beta/index.html を proxy_pass の後につけた http://proxy.host/beta/index.html になる
- proxy_pass が http://proxy.host のように / がない場合,/alpha/beta/index.html は,ロケーションを全て含み,http://proxy.host/alpha/beta/index.html になる.
- http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass