Skip to content

Instantly share code, notes, and snippets.

@tidalgo22
Created September 14, 2017 07:37
Show Gist options
  • Save tidalgo22/0ab2a5d1a3b7a337a5cdcdc032cb821a to your computer and use it in GitHub Desktop.
Save tidalgo22/0ab2a5d1a3b7a337a5cdcdc032cb821a to your computer and use it in GitHub Desktop.
~ -tilde instructs nginx to perform a case-sensitive regular expression match, instead of a straight string comparison.
^ -matches the beginning of the input. For example, ^/photos/.*$ would match paths beginning in '/photos/'. By itself, ^ is a shortcut for all paths (since they all have a beginning).
* -matches all strings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment