GnoseedGnoseed
DevOps · Flashcard

What does the ^~ modifier on a location do when it is the longest matching prefix?

Why this is the answer

^~ tells nginx that if this prefix is the longest match, use it without evaluating any regex locations. It does the opposite of preferring regex; case-insensitivity comes from ~* on regex locations, not ^~; and internal-only access is the internal directive, unrelated to ^~.

Read more in the docs
Study in Gnoseed →