Apr 23, 2013 — server { listen 80; rewrite ^(/users/\w )$ https://$host$1 permanent; ... } for negative match you could use: if ($request_uri !~ "^/users/\w $") ...
nginx-if-regex-not-match
939c2ea5af
nginx regex match, nginx regex match query string, nginx regex match location, nginx regex match path, nginx regex match variable, nginx regex match all, nginx regex match any character, nginx regex match word, nginx regex match question mark, nginx regex match if
Comments