You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/12/08 07:16:50 UTC

[GitHub] [apisix] kellyseeme commented on issue #8483: use http to htts is not affect

kellyseeme commented on issue #8483:
URL: https://github.com/apache/apisix/issues/8483#issuecomment-1342185045

   if i change the routes name,then the https is not affected,error log is :
   [error] 19072#19072: *7957 [lua] init.lua:540: http_access_phase(): failed to set upstream: missing upstream configuration in Route or Service, client
   curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f134336f236f87ad84b625c9f1' -X PUT -d '{
   "uri": "/*",
   "plugins": {
   "redirect": {
   "http_to_https": true
   }
   }
   }'
   
   curl http://127.0.0.1:9180/apisix/admin/routes/httptohttps -H 'X-API-KEY: edd1c9f134336f236f87ad84b625c9f1' -X PUT -d '{
   "uri": "/",
   "name": "back",
   "upstream_id": "mybackend",
   "status": 1,
   "host": ".backend.com"
   
   }'


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org