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

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -