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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -