« Previous Next »

Thread: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

Last post 06-15-2009 6:59 PM by anilr. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 03-11-2009, 1:33 PM

    • chapmanjw
    • Not Ranked
    • Joined on 08-04-2005, 8:33 PM
    • Mesa, AZ
    • Posts 12

    Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    Hello,

    I am wondering if this is the best tool to fit my scenario, and if it is how do I do it?

    I have on Win2k8 server that is the gateway between my ISP and my network (I only have one public IP) running DNS/NAT/DHCP, etc.  All of my domain names for my IIS applications, Linux web applications, WSS, Exchange, OWA, etc point to that single IP address.  What I need to accomplish is having all incoming traffic to that server routed to the correct web server based on the host name used.

    I have one farm running IIS (includes WSS, OWA, and .NET apps) and another farm running linux for php applications.  

    Will using ARR allow me to correctly route to both the Windows IIS farm and the linux farm?  If it does, how do it do it?

    Thanks,

    John

    -----------------------------
    John Chapman
    -----------------------------
    www.createdimagination.com | www.thebelltolls.com
  • 03-11-2009, 3:17 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,227

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    The following rule using rewritemaps would send request using host1 to server1, host2 to server2 etc - edit as per your need

    <rewrite>
        <rewriteMaps>
            <rewriteMap name="hostmapping">
                <add key="host1" value="server1" />
                <add key="host2" value="server2" />
            </rewriteMap>
        </rewriteMaps>
        <globalRules>
            <rule name="Rewrite rule1 for hostmapping" patternSyntax="Wildcard" stopProcessing="true">
                <match url="*" />
                <conditions>
                    <add input="{hostmapping:{HTTP_HOST}}" pattern="*" />
                </conditions>
                <action type="Rewrite" url="http://{C:0}/{R:0}" appendQueryString="true" />
            </rule>
        </globalRules>
    </rewrite>

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 03-11-2009, 3:39 PM In reply to

    • chapmanjw
    • Not Ranked
    • Joined on 08-04-2005, 8:33 PM
    • Mesa, AZ
    • Posts 12

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

     Ok, one last question then, where do I configure that rewrite map that you posted?

    -----------------------------
    John Chapman
    -----------------------------
    www.createdimagination.com | www.thebelltolls.com
  • 03-13-2009, 7:45 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,227

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    That would be in IIS configuration file - either applicationhost.config or your site's/app's web.config file - change globalRules to rules in case of the latter.  You will also need to enable ARR's proxy functionality.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-15-2009, 2:03 PM In reply to

    • liamdye
    • Not Ranked
    • Joined on 06-15-2009, 6:00 PM
    • Posts 3

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    Thanks for the suggestion, however after adding that to my web.config file of my default web site (the one that is running owa) it gives me an application runtime error.

     I host sharepoint and owa on the same box and use host header redirects. Then on another box on my network I have CWA currently on port 444 but I would like to transition it over to 443 so the main server that is hosting OWA looks at the host header and if the host header is cwa.*.com it points it to my other server. If the host header is either owa.*.com or portal.*.com it leaves it on the local machine.

     Thanks for any help you can provide.

  • 06-15-2009, 2:19 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,227

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    globalRules can only be used in applicationhost.config - you need to use rules in web.config files - also, if you are a bit unsure about using IIS configuration, use the UI to configure things and it will do the right job.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-15-2009, 6:08 PM In reply to

    • liamdye
    • Not Ranked
    • Joined on 06-15-2009, 6:00 PM
    • Posts 3

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    So I have gone in and pretty much translated the script into UI. And in my Rewrite Map have three entries. Original value: owa.*.ca New value: "server name that hosts owa" Original value: cwa.*.ca New value: "server name that hosts cwa" Original value: portal.*.ca New value: "server name that hosts the portal"
  • 06-15-2009, 6:35 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,227

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    You cannot use wildcards in rewriteMaps - it has to be the exact literal string to match - looks like you want 3 rules, one to match each pattern.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-15-2009, 6:39 PM In reply to

    • liamdye
    • Not Ranked
    • Joined on 06-15-2009, 6:00 PM
    • Posts 3

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    They aren't wildcard, it was just an example. Real address are cwa.liamdye.ca owa.liamdye.ca mail.liamdye.ca portal.liamdye.ca But doesn't that now mess up the host headers because everything let's say that gets forwarded to 10.10.0.2 doesn't preserve the old host header.
  • 06-15-2009, 6:59 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,227

    Re: Setting Up ARR with WSS, OWA, .NET Apps, and Linux Servers

    ARR has a setting called preserveHostHeader which controls whether the original host header will be preserved or the new destination used as the host header - set this to true to preserve the host header.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (10 items)