Caibreeze0908 opened a new issue #5428:
URL: https://github.com/apache/apisix/issues/5428


   ### Issue description
   
   server {
       listen       80;
       server_name  www.test123.com;
       location ~ ^/$|^/test1/check.do$ {
           if ($http_user_agent ~ 
Android|iPhone|iPad|UCWEB|MicroMessenger|MQQBrowser|Windows\ Phone) {
               rewrite ^/(.*)$ https://h5.test.com.cn/h5test/index.html#/testdo 
permanent;
           }
   
           rewrite ^/(.*) https://test.abc.com/$1 permanent;
   
           access_log off;
       }
   }
   How to configure in apifix?
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):2.4
   - OS (cmd: `uname -a`):centos7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):1.19.3
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: 
depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to