JoniJnm opened a new issue, #1903:
URL: https://github.com/apache/apisix-ingress-controller/issues/1903

   ### Description
   
   I'm using ingress-controller.
   
   I have an API witch responds using HTTP and HTTPS. I use 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).
   
   I want to remove the redirect plugin and respond a 4XX code (maybe 403 
Forbidden or [426 upgrade 
required](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426)) when 
the request is using http? Is this possible?
   
   ApisixRoute has the value exprs config 
([example](https://apisix.apache.org/docs/ingress-controller/concepts/apisix_route/#advanced-routing),
 
[docs](https://apisix.apache.org/docs/ingress-controller/references/apisix_route_v2/)),
 but seems like there is no way to match the port or "it's http".
   
   ### 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 apache/apisix#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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to