请问这几个niginx 的location什么意思?

sddda 发布于 2016/08/28 11:43
阅读 177
收藏 0

rewrite ^/test/\d+/\d+/(\d+)id.html "/index.php?s=/mou/type/aa/id/$1" last;

还有这条rewrite是什么意思

请问这个location分别代表什么意思?


location ~ ^/bbs//\d+b.html{

                proxy_set_header Host "baoliao.oeeee.com";

               proxy_pass http://192.168.0.2:80;

               }

 location ~ ^/search.aspx{

                deny all;

        }

  location /1.html {

            access_log off;

   }

 

if ($http_referer ~* "http://www.xxxx.cn"){

        return 444;

        }

location / {

       if ($http_user_agent ~* '(Android|webOS|iPhone|iPod|BlackBerry)') {

       rewrite ^.+ http://test.com$uri;

    }

加载中
返回顶部
顶部