Score:0

Redirect port 443 to another SSL configured port on IIS 10

cn flag

Fist and foremost, due to limitations imposed by our service provider I can only use 1 IP address for both 80 and 443, so multiple IP address configuration is simply not an option. So, I have a server 2022 with IIS 10. I would like to redirect a website: https://www.gmcomputers.co.za to https://www.gmcomputers.co.za:4443 without having to stipulate the :4443 part. I found a possible URLRewrite rule that looks like it should work, however it does not currently. I keep getting "the webpage took too long to respond. the rule is as follows (with my modifications inserted):

 <rewrite>
            <rules>
                <rule name="Redirect HTTPS Port" stopProcessing="true">
                    <match url="www.gmcomputers.co.za" />
                     <conditions trackAllCaptures="true">
                        <add input="{URL}" pattern="www.gmcomputers.co.za" />
                        <add input="{SERVER_PORT}" pattern="443" />
                    </conditions>
                    <action type="Redirect" url="https://www.gmcomputers.co.za:4443" />
                </rule>
            </rules>
        </rewrite>

Obviously, if I type the full URL https://www.gmcomputers.co.za:4443 it works perfectly. Could someone please advise where I am going wrong with my code? Thanking you.

Lex Li avatar
vn flag
SNI based bindings are what you should learn, https://docs.jexusmanager.com/tutorials/https-binding.html#sni-based-bindings. So, please host all HTTPS sites under port 443.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.