Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision |
| nginx:location [2021-06-02] – created dcai | nginx:location [2021-06-02] (current) – dcai |
|---|
| | ===== nginx <location> ===== |
| | |
| | |
| <code> | <code> |
| location optional_modifier location_match { | location optional_modifier location_match { |
| * ''~*'': If a tilde and asterisk modifier is used, the location block will be interpreted as a case-insensitive regular expression match. | * ''~*'': If a tilde and asterisk modifier is used, the location block will be interpreted as a case-insensitive regular expression match. |
| * ''^~'': If a carat and tilde modifier is present, and if this block is selected as the best non-regular expression match, regular expression matching will not take place. | * ''^~'': If a carat and tilde modifier is present, and if this block is selected as the best non-regular expression match, regular expression matching will not take place. |
| | |
| | |
| | |
| | https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms |