Do a Rewrite BEFORE the browser check the certificate
September 13, 2023 03:33AM
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.
Attachments:
open | download - attach1.png (23.9 KB)
open | download - attach2.png (59 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready