We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

ARR and HTTPS redirect not workingRSS

2 replies

Last post Jan 14, 2021 07:23 AM by samwu

  • ARR and HTTPS redirect not working

    Jan 13, 2021 08:05 PM|NovaDev|LINK

    According to this post, I have set up alwaysup-green, alwaysup-blue, and alwaysup, with alwaysup as a server farm which will direct traffic to the healthy server (green or blue)...but now I want to do HTTPS redirection from http://alwaysup to https://alwaysup and that is not working. First, I'm unsure where to do the URL rewrite. Do I do it at the alwaysup level, or the server farm level? Second, how do I troubleshoot this issue? I've found some answers (such as this one) but I'm missing something, since it doesn't say where that web.config lives. So I'm forced to use the UI, but then idk how to see whether I'm doing this right, except that I know I'm not since the http doesn't redirect. 

    So where do I modify the redirect? And where is the ARR web.config file?

    Thanks!

    <div style="display: none;"></div>
  • Re: ARR and HTTPS redirect not working

    Jan 13, 2021 09:52 PM|lextm|LINK

    NovaDev

    So where do I modify the redirect? And where is the ARR web.config file?

    Where are your ARR rules? You don't really need a web.config, as everything can live in applicationHost.config.

    Lex Li
    Want to have a chat on the issues you meet? Find me at https://booktime.xyz/p/lextm
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: ARR and HTTPS redirect not working

    Jan 14, 2021 07:23 AM|samwu|LINK

    Hi NovaDev,

    NovaDev

    First, I'm unsure where to do the URL rewrite. Do I do it at the alwaysup level, or the server farm level?

    You should do url rewrite in alwaysup level.

    NovaDev

    Second, how do I troubleshoot this issue? I've found some answers (such as this one) but I'm missing something, since it doesn't say where that web.config lives. So I'm forced to use the UI, but then idk how to see whether I'm doing this right, except that I know I'm not since the http doesn't redirect. 

    You only need to right click on the website and select Explore to view the web.config file.

    I think this article can give you more help: Reverse Proxy with URL Rewrite v2 and Application Request Routing.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >