location /{
                                root /webserver/www/a.tk.com;
                                index index.html index.htm index.php;

                               
                                 if ( $document_uri ~ "/api/v1/(.*?)/(.*)/(.*)")
                                {
                                    rewrite ^/api/v1/(.*)/(.*)/(.*)$  /index.php?moudle=interface&control=$1&method=$2&id=$3 last;
                                }


                                if ( $document_uri ~ "/api/v1/(.*)/(.*)")
                                {
                                    rewrite ^/api/v1/(.*)/(.*)$  /index.php?moudle=interface&control=$1&method=$2 last;
                                }

                               


                        }

 

相关文章:

  • 2022-02-03
  • 2021-06-23
  • 2021-06-14
  • 2021-12-20
  • 2021-09-30
  • 2022-12-23
猜你喜欢
  • 2021-08-07
  • 2022-12-23
  • 2021-11-20
  • 2021-04-28
  • 2022-01-31
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案