gxthrj edited a comment on issue #289:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/289#issuecomment-801587847


   
   ```yaml
   apiVersion: apisix.apache.org/v2alpha1
   kind: ApisixRoute
   metadata:
     name: httpbin-route
   spec:
     http:
     - name: rule1
       priority: 100 // set priority for the rules which has the same host and 
uri
       match:
         hosts:
         - httpbin.com
         paths:
         - /ip
       backend:
         serviceName: httpbin
         servicePort: 80
     - name: rule2
        priority: 200 // set priority for the rules which has the same host and 
uri
        match:
          hosts:
          - httpbin.com
          paths:
          - /ip
          nginxVars:
            subject: http_user_agent
            op: Equal
            value: Mozilla
        backend:
           serviceName: httpbin-2
           servicePort: 80
   ```


----------------------------------------------------------------
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.

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


Reply via email to