docs: nginx 設定例を rewrite 不使用の proxy_pass 形式に変更 - #72
Open
yokobond wants to merge 1 commit into
Open
Conversation
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 <noreply@anthropic.com>
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
2026-08-20 の unattended-upgrade で nginx が 1.24.0-2ubuntu7.16 に更新された際、CVE-2026-42533 対策パッチの回帰バグ(USN-8563-4)により
rewrite ^/shift2/(.*)$ /$1 break;の結果 URI が壊れ、本番の/shift2/api/*等がすべて 404 になっていました。本番サーバーでは nginx を 7.17 に更新し、
/etc/nginx/shift2.confをproxy_pass http://localhost:4050/;(末尾/で prefix 除去、rewrite 不使用)に変更して復旧済みです。この PR はその設定例をドキュメント (docs/VPS_SETUP.md) に同期するものです。変更内容
docs/VPS_SETUP.mdの nginx 設定例からrewriteを削除し、proxy_pass http://localhost:4050/;形式へテスト
/shift2/,/shift2/api/config,/shift2/help.html,/shift2/js/...,/shift2/api/ical/allが 200 になることを確認済み🤖 Generated with Claude Code