国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

nginx - regular expression matching route writing method
阿神
阿神 2017-05-16 17:26:42
0
1
899

If you want to match some regular routes, use a proxy

location /chat/ {
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header  X-Real-IP  $remote_addr;
        proxy_pass http://newmessage;
 }

I want all routes starting with /chat/ to be proxied, such as /chat/send/. The above way of writing will work.

But want to add multiple matches

location /chat/ or /a/ or /b/ {

I checked some information online

location /(chat|a|b)/ {

This doesn't work either.

阿神
阿神

閉關(guān)修行中......

reply all(1)
phpcn_u1582

Add a tilde

location ~ /(chat|a|b)/ {
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template