How to Configure our webserver to redirect HTTP requests to HTTPS i apigee edge cloud?

Hello Team,

 

I want to change the response header from HTTP to HTTPS.

Here in apigee edge cloud env all services are HTTPS(Virtual host set as secure only) calls only. But while testing my apis, getting HTTP/1.1 200 ok. Have to change this to HTTPS.

How can we configure this HTTPS response headers.

Please help on this.

Thank you,httpsheader.PNG

0 2 171
2 REPLIES 2

Not sure whats your thought process but its a protocol.Go thru below RFC and may get better insights.

https://datatracker.ietf.org/doc/html/rfc7231

"HTTP/1.1" is a fixed phrase mandated by protocol, even if the request/response is HTTPS. This makes sense because HTTPS is just a TLS/SSL wrapped version of HTTP - the request/response format, headers, etc are all the same, just the outer transport layer is different.

Changing this response line to "HTTPS" would break your clients trying to parse the response and is not supported.