Nginx: Use more precise wildcard in paths for replacements.