Skip to content

Instantly share code, notes, and snippets.

View Ashcon's full-sized avatar
🌮

Ashcon Ashcon

🌮
  • NASA / Marqui Labs
View GitHub Profile
@Ashcon
Ashcon / nginx-new-additions.txt
Last active April 25, 2023 02:13
New NARI nginx additions to test special URI cases and handle SPA client-side routing bug
map $request_uri $fixed_uri {
~*^/(.*)\s(.*)$ /$1%20$2;
}
map $request_uri $new_uri {
~*^(?!.*\.\w{1,5}$)(.*)[A-Z](.*)$ $scheme://$host${lowercase:$1}$2;
}
server {