phpdave opened a new issue, #11205:
URL: https://github.com/apache/apisix/issues/11205

   ### Current State
   
   The documentation on this page: 
https://apisix.apache.org/docs/apisix/getting-started/configure-routes/ 
   
   states to use 
   ```
   curl -i "http://127.0.0.1:9180/apisix/admin/routes"; -X PUT -d '
   {
     "id": "getting-started-ip",
     "uri": "/ip",
     "upstream": {
       "type": "roundrobin",
       "nodes": {
         "httpbin.org:80": 1
       }
     }
   }'
   ```
   
   when i use that and then run 
   ```
    curl "http://127.0.0.1:9080/ip";
   ```
   
   I get 
   ```
   <html><head><title>Not Found</title></head><body><h1>404 Not 
Found</h1></body></html>
   ```
   
   ### Desired State
   
   I think the admin request should use 443 because that works
   
   ```
   curl -i "http://127.0.0.1:9180/apisix/admin/routes"; -X PUT -d '
   {
     "id": "getting-started-ip",
     "uri": "/ip",
     "upstream" : {
       "type": "roundrobin",
       "nodes": {
         "httpbin.org:443": 1
       },
       "pass_host": "node",
       "scheme": "https"
     }
   }'
   ```


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