You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "JoniJnm (via GitHub)" <gi...@apache.org> on 2023/04/26 16:45:42 UTC

[GitHub] [apisix] JoniJnm opened a new issue, #9375: help request: only response if protocol is http

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

   ### Description
   
   I'm using ingress-controller and the redirect plugin with the config [http_to_https](https://apisix.apache.org/docs/apisix/FAQ/#how-do-i-redirect-http-traffic-to-https-with-apache-apisix).
   
   Is there any way to send a 4XX code (maybe [426 upgrade required](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426)) when the request is using http and not https?
   
   ### Environment
   
   - [Helm apisix chart: 1.3.0](https://artifacthub.io/packages/helm/apisix/apisix/1.3.0) 
   - APISIX version (run `apisix version`): 3.2.0
   - Operating system (run `uname -a`): Linux apisix-594cbcf65-q5mf8 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 GNU/Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx version: openresty/1.21.4.1
   


-- 
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.apache.org

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


[GitHub] [apisix] Sn0rt commented on issue #9375: help request: only response if protocol is https

Posted by "Sn0rt (via GitHub)" <gi...@apache.org>.
Sn0rt commented on issue #9375:
URL: https://github.com/apache/apisix/issues/9375#issuecomment-1649198007

   @tao12345666333 pls take a look


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