wjx8382 commented on issue #356:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/356#issuecomment-818384772


   > > @tokers Why does `kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- 
curl http://127.0.0.1:9080/headers -H 'Host: local.httpbin.org'` returns 
`{"error_msg":"404 Route Not Found"}`
   > > ```
   > > # httpbin-route.yaml
   > > apiVersion: apisix.apache.org/v2alpha1
   > > kind: ApisixRoute
   > > metadata:
   > >   name: httpserver-route
   > > spec:
   > >   http:
   > >   - name: rule1
   > >     match:
   > >       hosts:
   > >       - local.httpbin.org
   > >       paths:
   > >       - /*
   > >     backend:
   > >       serviceName: httpbin-85d57ddd75-wtmwh
   > >       servicePort: 80
   > > ```
   > 
   > Could you access the apisix admin API by
   > 
   > ```
   > kubectl exec -it -n tools apisix-7987b5b7f-tmrk7 -- curl 
http://127.0.0.1:9180/apisix/admin/routes
   > ```
   > 
   > To see the routes?
   
   It returns
   ```
   <html>
   <head><title>401 Authorization Required</title></head>
   <body>
   <center><h1>401 Authorization Required</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   ```


-- 
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:
us...@infra.apache.org


Reply via email to