Hello! I'd like to rewrite requests with or without a slash on the end by a rewrite map. Here are the relevant config lines. map $in $out { /path1/ /target1/; /path2/ /target2/; ... }; server { ... set $in $request_uri; if ($out) { rewrite ^ $out permanent; } # this works set $in "${request_uri}/"; if ($out) { rewrite ^ $out permanent; } # this does not .by andor.toth - How to...
Tip: I had overcame alias+try_files problem by using symlinks insted of aliases. Bests, Andorby andor.toth - Nginx Mailing List - English