Skip to content

Instantly share code, notes, and snippets.

@relax-more
Created May 9, 2013 06:01
Show Gist options
  • Save relax-more/5545831 to your computer and use it in GitHub Desktop.
Save relax-more/5545831 to your computer and use it in GitHub Desktop.
[nginx]  locationディレクティブの優先順位に関して
locationの適用順は…
修飾子=、完全一致
修飾子なし、完全一致
修飾子^~、前方一致
修飾子~ or ~* 正規表現マッチ
修飾子なし、前方一致
URIのパラメータ(?以降)はlocation適用順に影響しない。
参照:http://paulownia.hatenablog.com/entry/20111117/1321531964
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment