ederparaiso commented on issue #8387:
URL: https://github.com/apache/apisix/issues/8387#issuecomment-1327939140

   Be noticed, I did not change the route configuration to add host field as 
you did here
   
   > So why add `HOST` will mismatch route? Because your does not config host 
in route config. If you are using dashboard, you should config host <img 
alt="image" width="508" 
src="https://user-images.githubusercontent.com/11229089/203884181-834c751c-24ff-406a-8fda-d075739d967f.png";>
 if you using config curl to config route. You should using this
   > 
   > ```
   > curl -i -X POST \
   >    -H "X-API-KEY:edd1c9f034335f136f87ad84b625c8f1" \
   >    -H "Content-Type:application/json" \
   >    -d \
   > '{
   >   "uri": "/v3/bc8fdfcd-0392-49fa-8520-c8644d1688c8",
   >   "name": "test",
   >   "host": "run.mocky.io",
   >   "plugins": {
   >     "file-logger": {
   >       "path": "logs/file.log"
   >     }
   >   },
   >   "upstream": {
   >     "nodes": [
   >       {
   >         "host": "run.mocky.io",
   >         "port": 443,
   >         "weight": 1
   >       }
   >     ],
   >     "type": "roundrobin",
   >     "hash_on": "vars",
   >     "scheme": "https",
   >     "pass_host": "pass"
   >   },
   >   "status": 1
   > }' \
   >  'http://127.0.0.1:9180/apisix/admin/routes'
   > ```
   > 
   > Be noticed, I did not change the configuration except for adding a host 
field `"host": "run.mocky.io",`.
   
   


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