From 1fd7f59aef316d45d9249fb9a9da069832fe2d7d Mon Sep 17 00:00:00 2001 From: yokobond Date: Fri, 21 Aug 2026 13:21:49 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20nginx=20=E8=A8=AD=E5=AE=9A=E4=BE=8B?= =?UTF-8?q?=E3=82=92=20rewrite=20=E4=B8=8D=E4=BD=BF=E7=94=A8=E3=81=AE=20pr?= =?UTF-8?q?oxy=5Fpass=20=E5=BD=A2=E5=BC=8F=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nginx 1.24.0-2ubuntu7.16 (CVE-2026-42533 対策) の回帰バグで rewrite ^/shift2/(.*)$ /$1 break; の結果 URI が壊れ本番 API が 404 になったため、 本番の /etc/nginx/shift2.conf と同じく proxy_pass 末尾 / で prefix を除去する形式に同期。 Co-Authored-By: Claude Fable 5 --- docs/VPS_SETUP.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/VPS_SETUP.md b/docs/VPS_SETUP.md index d399fae..9a6e171 100644 --- a/docs/VPS_SETUP.md +++ b/docs/VPS_SETUP.md @@ -115,10 +115,10 @@ sudo nano /etc/nginx/shift2.conf ```nginx location /shift2/ { - # パスをリライト(/shift2/xxx を /xxx に変換) - rewrite ^/shift2/(.*)$ /$1 break; - - proxy_pass http://localhost:4050; + # /shift2/xxx を /xxx に変換して転送(proxy_pass 末尾の / で prefix を除去) + # ※ rewrite ^/shift2/(.*)$ /$1 break; は nginx 1.24.0-2ubuntu7.16 の + # 回帰バグ (USN-8563-4) で上流 URI が壊れたため使用しない + proxy_pass http://localhost:4050/; proxy_http_version 1.1; # WebSocketサポート