Arr reverse proxy does not work at server levelRSS

7 replies

Last post Oct 31, 2016 04:49 AM by milope

  • Arr reverse proxy does not work at server level

    Oct 28, 2016 01:03 PM|kkkkkk|LINK

    I have a few websites on iis, then I have a self hosted site. I Want forward a special host to this selfhosted site. I created rewrite rules at server level, it always give me 404.
    Finally I have to enable a default website which catch all hosts, but doing nothing. And it worked. It is as if iis has to forward the request to this site, then the URL rewrite rule can kick in, then got forwarded to somewhere else.
    As soon as I disable the default site, the proxy stopped working.
    I just don't want to enable the default sites just for proxy, that's lame.
    Why can't we have server level proxy, why does it have to attach to a site!
    Oddly, server level proxy works fine for me on another server with win2012.
  • Rovastar Rovastar

    5474 Posts

    MVP

    Moderator

    Re: Arr reverse proxy does not work at server level

    Oct 28, 2016 10:56 PM|Rovastar|LINK

    All ARR work the same way linking from the site first and then based on different rewrite rules.

    Troubleshoot IIS in style
    https://www.leansentry.com/
  • Re: Arr reverse proxy does not work at server level

    Oct 29, 2016 12:54 AM|kkkkkk|LINK

    This sounds a very weird way of working, as linking from the site is completely unnecessary. Does not sound like a real reverse proxy. What is worse, it didn't say anything in the doc.
  • Re: Arr reverse proxy does not work at server level

    Oct 29, 2016 12:55 AM|kkkkkk|LINK

    It seems win2012 does not need to link to the website. I tested it.
  • Rovastar Rovastar

    5474 Posts

    MVP

    Moderator

    Re: Arr reverse proxy does not work at server level

    Oct 29, 2016 11:00 PM|Rovastar|LINK

    kkkkkk

    It seems win2012 does not need to link to the website. I tested it.

    Maybe I am misunderstanding what you are after but you need some way for IIS to recognise the traffic from the HTTP.sys for this we need the bindings for the websites in IIS.


    Are you saying with no websites at all it works.

    And if it does what about logging, etc

    Troubleshoot IIS in style
    https://www.leansentry.com/
  • Re: Arr reverse proxy does not work at server level

    Oct 30, 2016 02:42 AM|kkkkkk|LINK

    In win2012, I do have a website.
    But in win2008, I have to have a default website to capture all domains. I.e. A website's host name is '*'. If I don't have such a website, the arbitrary domain won't be captured by arr. it seems are needs the website to capture the domain. I thought having iis captured the domains are enough.
  • Re: Arr reverse proxy does not work at server level

    Oct 31, 2016 03:37 AM|Yuk Ding|LINK

    Hi kkkkkk,

    If you define a rewrite rule for a website that doesn't exist , then the iis will have no ideal about where should the request be handled .

    usually, we need to rewrite a rewrite rule to define which host should the request be sent and then the request will be redirected or rewritten.

    So I think you should create a specific website to handle the redirect.

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.
  • Re: Arr reverse proxy does not work at server level

    Oct 31, 2016 04:49 AM|milope|LINK

    It's as Yuk said. ARR is an IIS out of band module. Being a module requires a worker process which requires at least one web site. In any scenario, if you delete your only site, you will lose your ARR reverse proxy.