Reverse Proxy using rewrite rulesRSS

3 replies

Last post Dec 06, 2018 07:29 AM by Brando Zhang

  • Reverse Proxy using rewrite rules

    Nov 30, 2018 09:57 AM|vincent.yrl|LINK

    Hello everyone.

    I want confgire a reverse in Windows Server 2008 R2 IIS 7.5

    My extenal domain is: www.contoso.com and i have the backnends servers in my LAN.

    I create te rewrite rule.

    Ibound rule

    www.contoso.com -> 10.8.16.30:9100/main/app/login/secure/log.jsf

    www.contoso.com/main/app/login/secure/log.jsf

    IN the inbound rule i have this:

    http://10.8.16.30:9100/main/app/login/secure/log.jsf i elimitate this {R:1} 

    if I leave those values {R:1] the browser tells me not found

    Can help me pls

    Regards

  • Re: Reverse Proxy using rewrite rules

    Dec 03, 2018 12:26 PM|Brando Zhang|LINK

    Hi vincent.yrl ,

    According to your other threads image, if you remove the {R:1}.

    Your rewrite url will become ":/xxxxxx.com" without the http or https.

    If you lose http or https, your browser will not send the request to the IIS server, you will face this 404 not found issue.

    Best Regards

    Brando

  • Re: Reverse Proxy using rewrite rules

    Dec 03, 2018 05:22 PM|vincent.yrl|LINK

    Hi

    I explain maybe bad. This is the scenario

    We have our apps in LAN, we can access via web htttp://10.8.16.30:9100/main/app/secure/log.jsf

    And we have other server in thos we install the module URL Rewrite,m with this module we want configure Reverse Proxy. So

    I create one rule (Inbound Rule)

    The basic configuration is this.

    Inbound Rule

    When access to my external domain www.contoso.com i see the index of the internal server 10.8.16.30. But i want to access to other directory locate in the intenal server (10.8.16.30), this directory contain our apps. With this rule when y write the directory manually we great access to app, that is good

    When i write in my browser www.contoso.com/apps/log/login.jsf i can accces fine.

    But we want when i write www.contoso.com access directly to my apps, i cant use a redirect because is an internal server with a internal address.

    When i edit the Inbound Rule to http://10.8.16.30:9100/apps/

    Inbound Rule 2 edit

    with {R:1}

    When i edit the rule to access directly ti my apps, i have the error Not Found

    Not found

    Can anyone help me.

    We want access directly to our apps when write www.contoso.com

    Regards

    Vincent

  • Re: Reverse Proxy using rewrite rules

    Dec 06, 2018 07:29 AM|Brando Zhang|LINK

    Hi vincent.yrl,

    I'm so sorry that, I couldn't see your inbound rule image.

    So I couldn't know how you set the inbound rule.

    Could you please post the webconfig setting about the inbound rule?

    Best Regards,

    Brando