How to redirect or rewrite IIS site with port in URL to URL without port? Announcing the...

Why did the rest of the Eastern Bloc not invade Yugoslavia?

In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?

Fundamental Solution of the Pell Equation

What does this icon in iOS Stardew Valley mean?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

What is a non-alternating simple group with big order, but relatively few conjugacy classes?

Understanding Ceva's Theorem

What is Wonderstone and are there any references to it pre-1982?

When were vectors invented?

porting install scripts : can rpm replace apt?

Why light coming from distant stars is not discreet?

Why aren't air breathing engines used as small first stages

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

Output the ŋarâþ crîþ alphabet song without using (m)any letters

What is Arya's weapon design?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

If a contract sometimes uses the wrong name, is it still valid?

Can a non-EU citizen traveling with me come with me through the EU passport line?

What causes the vertical darker bands in my photo?

Short Story with Cinderella as a Voo-doo Witch

How do I name drop voicings

What would be the ideal power source for a cybernetic eye?

51k Euros annually for a family of 4 in Berlin: Is it enough?

Bete Noir -- no dairy



How to redirect or rewrite IIS site with port in URL to URL without port?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!IIS 7 URL rewrite ruleCannot 301 redirect with IIS URL Rewrite ModuleIIS URL Rewrite HTTP to HTTPS with PortHow to deal with certain characters in IIS URL RewriteIIS 8 URL Redirect on site levelRedirect multiple browser requests to one site with IIS URL requestComplex IIS URL RewriteIIS URL Rewrite 404 ErrorIIS Rewrite Multiple URLS to PortsURL redirect to port





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm not 100% sure if this is the right part of StackOverflow to post this but to me it made the most sense. Sorry if its not!



Currently I have a site in IIS configured on HTTPS with port 7500. I can access this site by using the URL: https://portal.company.com:7500.



What I would like to do is remove the port number at the end of the URL so users can access this site using https://portal.company.com...



I am a complete beginner with IIS, but what I have tried is the HTTP Redirect, which if I used on this IIS site, would redirect a user that hits portal.company.com:7500 to some other site, which is not what I need. Another thing I have though about is creating another IIS site which serves the purpose of being at the URL portal.company.com and when its hit, it redirects to my portal.company.com:7500, but I don't know if this is the best approach.



So my question is, what are my options for achieving the behavior mentioned above and what is the best/recommended approach?



I haven't played with URL Rewriting before but I will look into that now while I wait for a reply. Thanks!!



Using IIS Manager on a Windows Server 2008 machine.










share|improve this question














bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    I'm not 100% sure if this is the right part of StackOverflow to post this but to me it made the most sense. Sorry if its not!



    Currently I have a site in IIS configured on HTTPS with port 7500. I can access this site by using the URL: https://portal.company.com:7500.



    What I would like to do is remove the port number at the end of the URL so users can access this site using https://portal.company.com...



    I am a complete beginner with IIS, but what I have tried is the HTTP Redirect, which if I used on this IIS site, would redirect a user that hits portal.company.com:7500 to some other site, which is not what I need. Another thing I have though about is creating another IIS site which serves the purpose of being at the URL portal.company.com and when its hit, it redirects to my portal.company.com:7500, but I don't know if this is the best approach.



    So my question is, what are my options for achieving the behavior mentioned above and what is the best/recommended approach?



    I haven't played with URL Rewriting before but I will look into that now while I wait for a reply. Thanks!!



    Using IIS Manager on a Windows Server 2008 machine.










    share|improve this question














    bumped to the homepage by Community 8 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I'm not 100% sure if this is the right part of StackOverflow to post this but to me it made the most sense. Sorry if its not!



      Currently I have a site in IIS configured on HTTPS with port 7500. I can access this site by using the URL: https://portal.company.com:7500.



      What I would like to do is remove the port number at the end of the URL so users can access this site using https://portal.company.com...



      I am a complete beginner with IIS, but what I have tried is the HTTP Redirect, which if I used on this IIS site, would redirect a user that hits portal.company.com:7500 to some other site, which is not what I need. Another thing I have though about is creating another IIS site which serves the purpose of being at the URL portal.company.com and when its hit, it redirects to my portal.company.com:7500, but I don't know if this is the best approach.



      So my question is, what are my options for achieving the behavior mentioned above and what is the best/recommended approach?



      I haven't played with URL Rewriting before but I will look into that now while I wait for a reply. Thanks!!



      Using IIS Manager on a Windows Server 2008 machine.










      share|improve this question














      I'm not 100% sure if this is the right part of StackOverflow to post this but to me it made the most sense. Sorry if its not!



      Currently I have a site in IIS configured on HTTPS with port 7500. I can access this site by using the URL: https://portal.company.com:7500.



      What I would like to do is remove the port number at the end of the URL so users can access this site using https://portal.company.com...



      I am a complete beginner with IIS, but what I have tried is the HTTP Redirect, which if I used on this IIS site, would redirect a user that hits portal.company.com:7500 to some other site, which is not what I need. Another thing I have though about is creating another IIS site which serves the purpose of being at the URL portal.company.com and when its hit, it redirects to my portal.company.com:7500, but I don't know if this is the best approach.



      So my question is, what are my options for achieving the behavior mentioned above and what is the best/recommended approach?



      I haven't played with URL Rewriting before but I will look into that now while I wait for a reply. Thanks!!



      Using IIS Manager on a Windows Server 2008 machine.







      windows-server-2008 iis iis-7 redirect rewrite






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '13 at 19:54









      user2573690user2573690

      106113




      106113





      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 8 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          4 Answers
          4






          active

          oldest

          votes


















          0














          If as you note in a comment on the other answer you have another site already running on port 443, you will need another IP address so that you can bind the site to port :443 on that address, then change your DNS records accordingly. You cannot bind more than one site to the same socket with HTTPS in IIS, at least until SNI becomes totally viable and Microsoft updates the software accordingly.



          The exception would be if you are running a wildcard or ASN certificate that is valid for both sites, then follow this procedure.



          This is assuming your goal is to allow visitors to hit the site over HTTPS from their browsers without specifying a port. If I misunderstood your question then the answer won't be accurate:)






          share|improve this answer


























          • Thanks for the answer. Yes I am trying to have users access the portal.domain.com without any port number. Also I do have a wildcard certificate for *.domain.com so I will try running through the procedure you posted.

            – user2573690
            Nov 22 '13 at 16:49











          • I tried the procedure you mentioned and set both of my sites to port 443 and ran the command in cmd but it did not work, when I try to start my second site I get the port is already in use error message...any ideas

            – user2573690
            Nov 22 '13 at 18:44



















          0














          Try This



          <configuration>
          <system.webServer>
          <rewrite>
          <rules>
          <rule name="removePort" stopProcessing="true">
          <match url="^(http(s)?://)?(portal.company.com):7500(/.*)?$" />
          <action type="Redirect" url="https://{R:3}/{R:4}" />
          </rule>
          </rules>
          </rewrite>
          </system.webServer>







          share|improve this answer































            -1














            Have you tried simply changing the http binding to use port 80? That should be all you need to do, no need for redirection to take place. Assuming you don't have another web site on port 80, this should work just fine for you.



            http://www.gadgetcage.com/how-to-change-iis-port-in-windows-7/3457/



            This is based on the fact you were willing to create a new website on port 80 for the sake of simply redirecting to port 7500. Just take out the middle man and move you port 7500 site onto port 80, and problem solved.






            share|improve this answer


























            • Thanks for the answer. Well the site is actually HTTPS and I have another site running on port 443, and it looks like the default site is running on 444. Any other ideas?

              – user2573690
              Nov 21 '13 at 20:39











            • URL Rewrite can be used to redirect to a different port fairly easily, and would be the route I'd recommend here. The following tutorial is for exchange but it can be adapted to what you're doing. morgansimonsen.wordpress.com/2009/04/02/…

              – Lee Harrison
              Nov 21 '13 at 22:34













            • Rewriting involves redirecting the user at the HTTP layer, it won't allow them to host two SSL sites on the same IP.

              – phoebus
              Nov 21 '13 at 23:29











            • The is nothing stopping you from running two HTTPS sites on the same IP. See a Lync Frontend server, it setup that way by default. The same PORT, yes that wouldn't work. Your down vote is unwarranted. URL Rewrite can be used to redirect port 80 traffic over to port 7500, don't listen to phoebus. Just make sure your certificates are right.

              – Lee Harrison
              Nov 22 '13 at 12:48











            • But it won't allow his users to visit the site directly via URL as the poster is requesting, without specifying the port, unless the site is bound on 443. Without that binding he will need to specify the port, unless you are suggesting that that binding he added and then the URL rewritten to correspond.

              – phoebus
              Nov 22 '13 at 15:20





















            -2














            you can use 2 ssl certs on the same server with one IP but they must use another port. Multi-name certs are quite costly. URL rewrite can be used to hide the port from the client.






            share|improve this answer
























            • That's not actually the case, with Server Name Indication (SNI) you can have multiple certificates on the same IP address and TCP port number.

              – HBruijn
              Feb 17 '15 at 21:00






            • 1





              IIS7 doesn't support SNI

              – austinian
              Jul 20 '15 at 19:29












            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f556602%2fhow-to-redirect-or-rewrite-iis-site-with-port-in-url-to-url-without-port%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            If as you note in a comment on the other answer you have another site already running on port 443, you will need another IP address so that you can bind the site to port :443 on that address, then change your DNS records accordingly. You cannot bind more than one site to the same socket with HTTPS in IIS, at least until SNI becomes totally viable and Microsoft updates the software accordingly.



            The exception would be if you are running a wildcard or ASN certificate that is valid for both sites, then follow this procedure.



            This is assuming your goal is to allow visitors to hit the site over HTTPS from their browsers without specifying a port. If I misunderstood your question then the answer won't be accurate:)






            share|improve this answer


























            • Thanks for the answer. Yes I am trying to have users access the portal.domain.com without any port number. Also I do have a wildcard certificate for *.domain.com so I will try running through the procedure you posted.

              – user2573690
              Nov 22 '13 at 16:49











            • I tried the procedure you mentioned and set both of my sites to port 443 and ran the command in cmd but it did not work, when I try to start my second site I get the port is already in use error message...any ideas

              – user2573690
              Nov 22 '13 at 18:44
















            0














            If as you note in a comment on the other answer you have another site already running on port 443, you will need another IP address so that you can bind the site to port :443 on that address, then change your DNS records accordingly. You cannot bind more than one site to the same socket with HTTPS in IIS, at least until SNI becomes totally viable and Microsoft updates the software accordingly.



            The exception would be if you are running a wildcard or ASN certificate that is valid for both sites, then follow this procedure.



            This is assuming your goal is to allow visitors to hit the site over HTTPS from their browsers without specifying a port. If I misunderstood your question then the answer won't be accurate:)






            share|improve this answer


























            • Thanks for the answer. Yes I am trying to have users access the portal.domain.com without any port number. Also I do have a wildcard certificate for *.domain.com so I will try running through the procedure you posted.

              – user2573690
              Nov 22 '13 at 16:49











            • I tried the procedure you mentioned and set both of my sites to port 443 and ran the command in cmd but it did not work, when I try to start my second site I get the port is already in use error message...any ideas

              – user2573690
              Nov 22 '13 at 18:44














            0












            0








            0







            If as you note in a comment on the other answer you have another site already running on port 443, you will need another IP address so that you can bind the site to port :443 on that address, then change your DNS records accordingly. You cannot bind more than one site to the same socket with HTTPS in IIS, at least until SNI becomes totally viable and Microsoft updates the software accordingly.



            The exception would be if you are running a wildcard or ASN certificate that is valid for both sites, then follow this procedure.



            This is assuming your goal is to allow visitors to hit the site over HTTPS from their browsers without specifying a port. If I misunderstood your question then the answer won't be accurate:)






            share|improve this answer















            If as you note in a comment on the other answer you have another site already running on port 443, you will need another IP address so that you can bind the site to port :443 on that address, then change your DNS records accordingly. You cannot bind more than one site to the same socket with HTTPS in IIS, at least until SNI becomes totally viable and Microsoft updates the software accordingly.



            The exception would be if you are running a wildcard or ASN certificate that is valid for both sites, then follow this procedure.



            This is assuming your goal is to allow visitors to hit the site over HTTPS from their browsers without specifying a port. If I misunderstood your question then the answer won't be accurate:)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 22 '13 at 16:38

























            answered Nov 21 '13 at 23:26









            phoebusphoebus

            7,77712528




            7,77712528













            • Thanks for the answer. Yes I am trying to have users access the portal.domain.com without any port number. Also I do have a wildcard certificate for *.domain.com so I will try running through the procedure you posted.

              – user2573690
              Nov 22 '13 at 16:49











            • I tried the procedure you mentioned and set both of my sites to port 443 and ran the command in cmd but it did not work, when I try to start my second site I get the port is already in use error message...any ideas

              – user2573690
              Nov 22 '13 at 18:44



















            • Thanks for the answer. Yes I am trying to have users access the portal.domain.com without any port number. Also I do have a wildcard certificate for *.domain.com so I will try running through the procedure you posted.

              – user2573690
              Nov 22 '13 at 16:49











            • I tried the procedure you mentioned and set both of my sites to port 443 and ran the command in cmd but it did not work, when I try to start my second site I get the port is already in use error message...any ideas

              – user2573690
              Nov 22 '13 at 18:44

















            Thanks for the answer. Yes I am trying to have users access the portal.domain.com without any port number. Also I do have a wildcard certificate for *.domain.com so I will try running through the procedure you posted.

            – user2573690
            Nov 22 '13 at 16:49





            Thanks for the answer. Yes I am trying to have users access the portal.domain.com without any port number. Also I do have a wildcard certificate for *.domain.com so I will try running through the procedure you posted.

            – user2573690
            Nov 22 '13 at 16:49













            I tried the procedure you mentioned and set both of my sites to port 443 and ran the command in cmd but it did not work, when I try to start my second site I get the port is already in use error message...any ideas

            – user2573690
            Nov 22 '13 at 18:44





            I tried the procedure you mentioned and set both of my sites to port 443 and ran the command in cmd but it did not work, when I try to start my second site I get the port is already in use error message...any ideas

            – user2573690
            Nov 22 '13 at 18:44













            0














            Try This



            <configuration>
            <system.webServer>
            <rewrite>
            <rules>
            <rule name="removePort" stopProcessing="true">
            <match url="^(http(s)?://)?(portal.company.com):7500(/.*)?$" />
            <action type="Redirect" url="https://{R:3}/{R:4}" />
            </rule>
            </rules>
            </rewrite>
            </system.webServer>







            share|improve this answer




























              0














              Try This



              <configuration>
              <system.webServer>
              <rewrite>
              <rules>
              <rule name="removePort" stopProcessing="true">
              <match url="^(http(s)?://)?(portal.company.com):7500(/.*)?$" />
              <action type="Redirect" url="https://{R:3}/{R:4}" />
              </rule>
              </rules>
              </rewrite>
              </system.webServer>







              share|improve this answer


























                0












                0








                0







                Try This



                <configuration>
                <system.webServer>
                <rewrite>
                <rules>
                <rule name="removePort" stopProcessing="true">
                <match url="^(http(s)?://)?(portal.company.com):7500(/.*)?$" />
                <action type="Redirect" url="https://{R:3}/{R:4}" />
                </rule>
                </rules>
                </rewrite>
                </system.webServer>







                share|improve this answer













                Try This



                <configuration>
                <system.webServer>
                <rewrite>
                <rules>
                <rule name="removePort" stopProcessing="true">
                <match url="^(http(s)?://)?(portal.company.com):7500(/.*)?$" />
                <action type="Redirect" url="https://{R:3}/{R:4}" />
                </rule>
                </rules>
                </rewrite>
                </system.webServer>








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 16 '15 at 21:14









                zmanzman

                558413




                558413























                    -1














                    Have you tried simply changing the http binding to use port 80? That should be all you need to do, no need for redirection to take place. Assuming you don't have another web site on port 80, this should work just fine for you.



                    http://www.gadgetcage.com/how-to-change-iis-port-in-windows-7/3457/



                    This is based on the fact you were willing to create a new website on port 80 for the sake of simply redirecting to port 7500. Just take out the middle man and move you port 7500 site onto port 80, and problem solved.






                    share|improve this answer


























                    • Thanks for the answer. Well the site is actually HTTPS and I have another site running on port 443, and it looks like the default site is running on 444. Any other ideas?

                      – user2573690
                      Nov 21 '13 at 20:39











                    • URL Rewrite can be used to redirect to a different port fairly easily, and would be the route I'd recommend here. The following tutorial is for exchange but it can be adapted to what you're doing. morgansimonsen.wordpress.com/2009/04/02/…

                      – Lee Harrison
                      Nov 21 '13 at 22:34













                    • Rewriting involves redirecting the user at the HTTP layer, it won't allow them to host two SSL sites on the same IP.

                      – phoebus
                      Nov 21 '13 at 23:29











                    • The is nothing stopping you from running two HTTPS sites on the same IP. See a Lync Frontend server, it setup that way by default. The same PORT, yes that wouldn't work. Your down vote is unwarranted. URL Rewrite can be used to redirect port 80 traffic over to port 7500, don't listen to phoebus. Just make sure your certificates are right.

                      – Lee Harrison
                      Nov 22 '13 at 12:48











                    • But it won't allow his users to visit the site directly via URL as the poster is requesting, without specifying the port, unless the site is bound on 443. Without that binding he will need to specify the port, unless you are suggesting that that binding he added and then the URL rewritten to correspond.

                      – phoebus
                      Nov 22 '13 at 15:20


















                    -1














                    Have you tried simply changing the http binding to use port 80? That should be all you need to do, no need for redirection to take place. Assuming you don't have another web site on port 80, this should work just fine for you.



                    http://www.gadgetcage.com/how-to-change-iis-port-in-windows-7/3457/



                    This is based on the fact you were willing to create a new website on port 80 for the sake of simply redirecting to port 7500. Just take out the middle man and move you port 7500 site onto port 80, and problem solved.






                    share|improve this answer


























                    • Thanks for the answer. Well the site is actually HTTPS and I have another site running on port 443, and it looks like the default site is running on 444. Any other ideas?

                      – user2573690
                      Nov 21 '13 at 20:39











                    • URL Rewrite can be used to redirect to a different port fairly easily, and would be the route I'd recommend here. The following tutorial is for exchange but it can be adapted to what you're doing. morgansimonsen.wordpress.com/2009/04/02/…

                      – Lee Harrison
                      Nov 21 '13 at 22:34













                    • Rewriting involves redirecting the user at the HTTP layer, it won't allow them to host two SSL sites on the same IP.

                      – phoebus
                      Nov 21 '13 at 23:29











                    • The is nothing stopping you from running two HTTPS sites on the same IP. See a Lync Frontend server, it setup that way by default. The same PORT, yes that wouldn't work. Your down vote is unwarranted. URL Rewrite can be used to redirect port 80 traffic over to port 7500, don't listen to phoebus. Just make sure your certificates are right.

                      – Lee Harrison
                      Nov 22 '13 at 12:48











                    • But it won't allow his users to visit the site directly via URL as the poster is requesting, without specifying the port, unless the site is bound on 443. Without that binding he will need to specify the port, unless you are suggesting that that binding he added and then the URL rewritten to correspond.

                      – phoebus
                      Nov 22 '13 at 15:20
















                    -1












                    -1








                    -1







                    Have you tried simply changing the http binding to use port 80? That should be all you need to do, no need for redirection to take place. Assuming you don't have another web site on port 80, this should work just fine for you.



                    http://www.gadgetcage.com/how-to-change-iis-port-in-windows-7/3457/



                    This is based on the fact you were willing to create a new website on port 80 for the sake of simply redirecting to port 7500. Just take out the middle man and move you port 7500 site onto port 80, and problem solved.






                    share|improve this answer















                    Have you tried simply changing the http binding to use port 80? That should be all you need to do, no need for redirection to take place. Assuming you don't have another web site on port 80, this should work just fine for you.



                    http://www.gadgetcage.com/how-to-change-iis-port-in-windows-7/3457/



                    This is based on the fact you were willing to create a new website on port 80 for the sake of simply redirecting to port 7500. Just take out the middle man and move you port 7500 site onto port 80, and problem solved.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 21 '13 at 20:24

























                    answered Nov 21 '13 at 20:17









                    Lee HarrisonLee Harrison

                    411318




                    411318













                    • Thanks for the answer. Well the site is actually HTTPS and I have another site running on port 443, and it looks like the default site is running on 444. Any other ideas?

                      – user2573690
                      Nov 21 '13 at 20:39











                    • URL Rewrite can be used to redirect to a different port fairly easily, and would be the route I'd recommend here. The following tutorial is for exchange but it can be adapted to what you're doing. morgansimonsen.wordpress.com/2009/04/02/…

                      – Lee Harrison
                      Nov 21 '13 at 22:34













                    • Rewriting involves redirecting the user at the HTTP layer, it won't allow them to host two SSL sites on the same IP.

                      – phoebus
                      Nov 21 '13 at 23:29











                    • The is nothing stopping you from running two HTTPS sites on the same IP. See a Lync Frontend server, it setup that way by default. The same PORT, yes that wouldn't work. Your down vote is unwarranted. URL Rewrite can be used to redirect port 80 traffic over to port 7500, don't listen to phoebus. Just make sure your certificates are right.

                      – Lee Harrison
                      Nov 22 '13 at 12:48











                    • But it won't allow his users to visit the site directly via URL as the poster is requesting, without specifying the port, unless the site is bound on 443. Without that binding he will need to specify the port, unless you are suggesting that that binding he added and then the URL rewritten to correspond.

                      – phoebus
                      Nov 22 '13 at 15:20





















                    • Thanks for the answer. Well the site is actually HTTPS and I have another site running on port 443, and it looks like the default site is running on 444. Any other ideas?

                      – user2573690
                      Nov 21 '13 at 20:39











                    • URL Rewrite can be used to redirect to a different port fairly easily, and would be the route I'd recommend here. The following tutorial is for exchange but it can be adapted to what you're doing. morgansimonsen.wordpress.com/2009/04/02/…

                      – Lee Harrison
                      Nov 21 '13 at 22:34













                    • Rewriting involves redirecting the user at the HTTP layer, it won't allow them to host two SSL sites on the same IP.

                      – phoebus
                      Nov 21 '13 at 23:29











                    • The is nothing stopping you from running two HTTPS sites on the same IP. See a Lync Frontend server, it setup that way by default. The same PORT, yes that wouldn't work. Your down vote is unwarranted. URL Rewrite can be used to redirect port 80 traffic over to port 7500, don't listen to phoebus. Just make sure your certificates are right.

                      – Lee Harrison
                      Nov 22 '13 at 12:48











                    • But it won't allow his users to visit the site directly via URL as the poster is requesting, without specifying the port, unless the site is bound on 443. Without that binding he will need to specify the port, unless you are suggesting that that binding he added and then the URL rewritten to correspond.

                      – phoebus
                      Nov 22 '13 at 15:20



















                    Thanks for the answer. Well the site is actually HTTPS and I have another site running on port 443, and it looks like the default site is running on 444. Any other ideas?

                    – user2573690
                    Nov 21 '13 at 20:39





                    Thanks for the answer. Well the site is actually HTTPS and I have another site running on port 443, and it looks like the default site is running on 444. Any other ideas?

                    – user2573690
                    Nov 21 '13 at 20:39













                    URL Rewrite can be used to redirect to a different port fairly easily, and would be the route I'd recommend here. The following tutorial is for exchange but it can be adapted to what you're doing. morgansimonsen.wordpress.com/2009/04/02/…

                    – Lee Harrison
                    Nov 21 '13 at 22:34







                    URL Rewrite can be used to redirect to a different port fairly easily, and would be the route I'd recommend here. The following tutorial is for exchange but it can be adapted to what you're doing. morgansimonsen.wordpress.com/2009/04/02/…

                    – Lee Harrison
                    Nov 21 '13 at 22:34















                    Rewriting involves redirecting the user at the HTTP layer, it won't allow them to host two SSL sites on the same IP.

                    – phoebus
                    Nov 21 '13 at 23:29





                    Rewriting involves redirecting the user at the HTTP layer, it won't allow them to host two SSL sites on the same IP.

                    – phoebus
                    Nov 21 '13 at 23:29













                    The is nothing stopping you from running two HTTPS sites on the same IP. See a Lync Frontend server, it setup that way by default. The same PORT, yes that wouldn't work. Your down vote is unwarranted. URL Rewrite can be used to redirect port 80 traffic over to port 7500, don't listen to phoebus. Just make sure your certificates are right.

                    – Lee Harrison
                    Nov 22 '13 at 12:48





                    The is nothing stopping you from running two HTTPS sites on the same IP. See a Lync Frontend server, it setup that way by default. The same PORT, yes that wouldn't work. Your down vote is unwarranted. URL Rewrite can be used to redirect port 80 traffic over to port 7500, don't listen to phoebus. Just make sure your certificates are right.

                    – Lee Harrison
                    Nov 22 '13 at 12:48













                    But it won't allow his users to visit the site directly via URL as the poster is requesting, without specifying the port, unless the site is bound on 443. Without that binding he will need to specify the port, unless you are suggesting that that binding he added and then the URL rewritten to correspond.

                    – phoebus
                    Nov 22 '13 at 15:20







                    But it won't allow his users to visit the site directly via URL as the poster is requesting, without specifying the port, unless the site is bound on 443. Without that binding he will need to specify the port, unless you are suggesting that that binding he added and then the URL rewritten to correspond.

                    – phoebus
                    Nov 22 '13 at 15:20













                    -2














                    you can use 2 ssl certs on the same server with one IP but they must use another port. Multi-name certs are quite costly. URL rewrite can be used to hide the port from the client.






                    share|improve this answer
























                    • That's not actually the case, with Server Name Indication (SNI) you can have multiple certificates on the same IP address and TCP port number.

                      – HBruijn
                      Feb 17 '15 at 21:00






                    • 1





                      IIS7 doesn't support SNI

                      – austinian
                      Jul 20 '15 at 19:29
















                    -2














                    you can use 2 ssl certs on the same server with one IP but they must use another port. Multi-name certs are quite costly. URL rewrite can be used to hide the port from the client.






                    share|improve this answer
























                    • That's not actually the case, with Server Name Indication (SNI) you can have multiple certificates on the same IP address and TCP port number.

                      – HBruijn
                      Feb 17 '15 at 21:00






                    • 1





                      IIS7 doesn't support SNI

                      – austinian
                      Jul 20 '15 at 19:29














                    -2












                    -2








                    -2







                    you can use 2 ssl certs on the same server with one IP but they must use another port. Multi-name certs are quite costly. URL rewrite can be used to hide the port from the client.






                    share|improve this answer













                    you can use 2 ssl certs on the same server with one IP but they must use another port. Multi-name certs are quite costly. URL rewrite can be used to hide the port from the client.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 17 '15 at 19:40









                    Darcy MDarcy M

                    1




                    1













                    • That's not actually the case, with Server Name Indication (SNI) you can have multiple certificates on the same IP address and TCP port number.

                      – HBruijn
                      Feb 17 '15 at 21:00






                    • 1





                      IIS7 doesn't support SNI

                      – austinian
                      Jul 20 '15 at 19:29



















                    • That's not actually the case, with Server Name Indication (SNI) you can have multiple certificates on the same IP address and TCP port number.

                      – HBruijn
                      Feb 17 '15 at 21:00






                    • 1





                      IIS7 doesn't support SNI

                      – austinian
                      Jul 20 '15 at 19:29

















                    That's not actually the case, with Server Name Indication (SNI) you can have multiple certificates on the same IP address and TCP port number.

                    – HBruijn
                    Feb 17 '15 at 21:00





                    That's not actually the case, with Server Name Indication (SNI) you can have multiple certificates on the same IP address and TCP port number.

                    – HBruijn
                    Feb 17 '15 at 21:00




                    1




                    1





                    IIS7 doesn't support SNI

                    – austinian
                    Jul 20 '15 at 19:29





                    IIS7 doesn't support SNI

                    – austinian
                    Jul 20 '15 at 19:29


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f556602%2fhow-to-redirect-or-rewrite-iis-site-with-port-in-url-to-url-without-port%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Фонтен-ла-Гаярд Зміст Демографія | Економіка | Посилання |...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Маріан Котлеба Зміст Життєпис | Політичні погляди |...