Regular expression not working in Nginx -
i write regular expression in nginx not work. why?
location /profil/(cancel_email|activation) {
if write following, instead
location /profil/cancel_email { location /profil/activation {
it works, want use reglar expression
any idea please?
add regexp match symbol ~ location directive, that:
location ~ ^/profil/(cancel_email|activation) { ... }
ref: http://nginx.org/en/docs/http/ngx_http_core_module.html#location
Comments
Post a Comment