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/04/19 01:55:31 UTC
[GitHub] [apisix] XW512 commented on issue #6840: help request: apisix gateway supports intranet access to all interfaces, and Internet HTTPS access to specified interfaces
XW512 commented on issue #6840:
URL: https://github.com/apache/apisix/issues/6840#issuecomment-1101916095
> You can create separate routes for http and https. In the route created for https, you can use the `host` and `vars` attributes to match specific https requests.
>
> ```shell
> $ curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
> {
> "uri": "/hello",
> "host": "foo.com",
> "vars": [
> [
> "scheme",
> "==",
> "https"
> ]
> ]
> }'
> ```
>
> This way, you can control the interfaces open under https.
OK,thank you very much,I will try it
--
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