Nginx adds a Location header in its reply. This one is in HTTP. I would like to replace it by HTTPS.
I tried with proxy_redirect.
With the hard URL, it works:
proxy_redirect http://www.mywebsite.com/fr/connexion?toUrl=%2Ffr https://www.mywebsite.com/fr/connexion?toUrl=%2Ffr;
However, I can't integrate RegEx in the command to make it work every time.
Do you have an idea?