tzssangglass opened a new issue, #6985: URL: https://github.com/apache/apisix/issues/6985
### Discussed in https://github.com/apache/apisix/discussions/6928 <div type='discussions-op-text'> <sup>Originally posted by **Lewisyixin** April 25, 2022</sup> Is there any way to redirect from http to https on apisix which behind a lb meanwhile use http to proxy between lb and apisix? We want to use apisix to replace nginx. Our nginx conf is about below.. Our ssl certs are on lb. lb's 80 port proxy to nginx 80 port and 443 port proxy to nginx 443 port. We just want to achieve the following conditions: 1. ssl cert just on lb and nginx 443 port is just a http port 2. redirection of https is completed by nginx(because some domain don't want auto redirection) `server{ listen 80; server_name www.test.com; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443 ; server_name www.test.com; } ` I tried to complete this on apisix but I found that a different of apisix is that mutiple http port can't handle different configs like behand. So is there any to accomplish the goal? </div> -- 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]
