Hello all, its my first post here so if it its not related here, please tell me to open on the correct site.
I have this infrastructure
Attach1.png
One server has a web allocated, and then has a lot of another subwebs allocated in another servers, theres are another server that is doing a proxy pass with nginx (S1 in the pic) and then redirect the navigation to the correct server.
1. Browser --> www.web22.com
2. B1 proxy pass to S1
3. S1 check where is allocated www.web22.com
4. S1 redirect the browser to the check the config in the correct server (IV)
5. The browser shows www.web22.com
Then the topic, i want to do a redirect from the HTTPS:// to the HTTPS://WWW.
Because i want to do that? Because in iOS devices, if i put https://web22.com it appear NO SECURE SITES because the CRT of the site is for www.web22.com
I try to do a redirect on the Server where is allocated the web and is if i check with a tool is working correct (attach2.png)
But in the browser it says NO SECURE but if you click to advance to the site, IT REDIRECTS YOU.
¿How can i do the rewrite BEFORE the browser check the certificate?
I hope i explained well.
Regards to all.