天天看點

Skype for Business Server 2015-13-IISARR-2-釋出-2-前端伺服器

參照:

Using IIS Application Request Routing (ARR) as a TMG Replacement

<a href="http://masteringlync.com/2013/02/12/using-iis-application-request-routing-arr-as-a-tmg-replacement/" target="_blank">http://masteringlync.com/2013/02/12/using-iis-application-request-routing-arr-as-a-tmg-replacement/</a>

1. 建立-伺服器場

SFBFEPool01.i-x-Cloud.com

8080

4443

<a href="http://s3.51cto.com/wyfs02/M02/6F/97/wKioL1Wilx_jt_cLAAD6ef8b0yQ519.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1WilyDA0-6UAADKyr4FNQQ947.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/97/wKioL1WilyDjKJUfAADcczsfXQg369.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/97/wKioL1WilyHjrziVAAD6JVwwWRI453.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1WilyKQDYhNAAFum1uBIog258.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/97/wKioL1WilyPQXYCgAACvY6DgoQA448.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/97/wKioL1WilyOyEY2vAAExK6tFfUE201.jpg" target="_blank"></a>

2. 修改設定

<a href="http://s3.51cto.com/wyfs02/M00/6F/9A/wKiom1WilU6zC0xfAAEuG8YKp0A751.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1WilyTh4BhrAAFn6_969J0221.jpg" target="_blank"></a>

3. URL重寫

<a href="http://s3.51cto.com/wyfs02/M02/6F/97/wKioL1WilyWx78zbAAEf6moPgxM883.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/9A/wKiom1WilU_Q-ypqAAD7pggKF28585.jpg" target="_blank"></a>

Double click the ARR_Lync_Loadbalance_SSL rule and let’s understand what you see here:

<a href="http://s3.51cto.com/wyfs02/M00/6F/9A/wKiom1WilVCxC97xAAD4eQ-WAuw271.jpg" target="_blank"></a>

In the Match URL is basically what we are going to make after the / in the URL. So if our URL was www.domain.com/website the pattern would be /website for example. You will see under Using you will have the option to use Regular Expressions.

The Conditions is a set of inputs that are required to match this rule. Here we will we have HTTPS which basically means we must match SSL requests only.

This is a continuation of the above. The Action section tells us what we should do if we match. So here we will route to the Lync Server Farm. This part is pretty straight forward and will be basically the same for all rules. So let’s create our first Lync Rule.

Meeting/Dialin/External Web Services Rule

Here you have some options based on how you do your simple URLs. If you do “Option A” where you URL would look like:

https://meet.domain.com and https://dialin.domain.com then you would need to use the below rule.

Change Using to: Regular Expression

Change Pattern to: (.*)

<a href="http://s3.51cto.com/wyfs02/M01/6F/9A/wKiom1WilVCB84jjAADy4wOCPx8069.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/97/wKioL1WilybS9XuHAAC36AViAeU271.jpg" target="_blank"></a>

{HTTP_HOST}

(SFBFEPool01.i-x-Cloud.com|dialin.i-x-Cloud.com|meet.i-x-Cloud.com)

Add to Conditions: {HTTP_HOST} on the pattern of (externalwebservices.domain.com|dialin.domain.com|meet.domain.com).

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1Wilyeg64_ZAADV8Qc3DLA295.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/97/wKioL1WilyehgaxDAADUnCnKZrU946.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1Wilyjy9U7jAAIR0aaVnJw163.jpg" target="_blank"></a>

If you use Option B where your simple URLs might look like this:

https://meet.domain.com/ID/ and https://meet.domain.com/dialin/ your rule would look like this.

((?:^dialin|^id|^Abs|^autodiscover|^CertProv|^CollabContent|^Fonts|^GroupExpansion|^HybridConfig|^lwa|^mcx|^PassiveAuth|^PersistentChat|^Reach|^RequestHandlerExt|^RgsClients|^Scheduler|^Storage|^ucwa|^WebTicket).*)

NOTE: You will need to change dialin and id to whatever you use if using Option B for simple URL’s

NOTE: This is the list of all potential directories as of RTM of Lync 2013. CU1 will most likely add some items so this may need to be edited.

NOTE: You should NOT add LyncDiscover.domain.com to this rule. The reason we don’t want to add this is because our regular expression doesn’t include the root of the website and lyncdiscover.domain.com/?sipuri= won’t match any of these rules. If you wanted to, you could change your pattern to (.*) and add lyncdiscover.domain.com to the list. I don’t have a good reason to do it either way. Whatever makes the most sense to you but I like to separate them out.

Lync Discover Rule

Now we create a rule for Lync Discover services. Here is what I have created. This rule is created as brand new and not one of the existing rules.

Lyncdiscover.i-x-Cloud.com

<a href="http://s3.51cto.com/wyfs02/M01/6F/9A/wKiom1WilVKRnTmJAADcJ2idRdE577.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/9A/wKiom1WilVOiyKXCAAFu6fxSko8463.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/97/wKioL1WilynwpSHwAAFY6kGUYek952.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1WilyrQXJQ4AAEPYkgjWFc893.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/9A/wKiom1WilVSSufovAAEvoJebCCE765.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/9A/wKiom1WilVXia4WWAADAUmfF7nU939.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/97/wKioL1WilyvCrX9GAAHU1p5ENio882.jpg" target="_blank"></a>

Here I am defining my pattern match as any request (.*) anything from lyncdiscover.thegaragelab.info URL. Here I am not requiring HTTPS on this rule Lync Discover will use either HTTP or HTTPS.

<a href="http://s3.51cto.com/wyfs02/M02/6F/9A/wKiom1WilVaQbYuvAAF-qBp2etk554.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/9A/wKiom1WilVaxhJagAAE2RaiNqn4876.jpg" target="_blank"></a>

查詢-公網IP:

<a href="http://s3.51cto.com/wyfs02/M00/6F/97/wKioL1Wily2T5W5NAAHdhj7w2wQ686.jpg" target="_blank"></a>

修改-公網DNS的A記錄:

<a href="http://s3.51cto.com/wyfs02/M00/6F/9A/wKiom1WilVfyoYZnAAHDHOlYQBk272.jpg" target="_blank"></a>

HOSTS中未配置:

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1Wily6jli0FAAHF5H916Mo533.jpg" target="_blank"></a>

測試:

<a href="https://meet.i-x-cloud.com/sfb01/BP9J6NQ4" target="_blank">https://meet.i-x-cloud.com/sfb01/BP9J6NQ4</a>

<a href="http://s3.51cto.com/wyfs02/M01/6F/9A/wKiom1WilVjii2ylAAFXxvGTycY703.jpg" target="_blank"></a>

<a href="https://dialin.i-x-cloud.com/" target="_blank">https://dialin.i-x-cloud.com</a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/97/wKioL1Wily-xG-J2AAF9NWRan5o324.jpg" target="_blank"></a>

<a href="https://sfbfepool01.i-x-cloud.com/PersistentChat/RM?clientlang=zh-CN" target="_blank">https://sfbfepool01.i-x-cloud.com/PersistentChat/RM?clientlang=zh-CN</a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/97/wKioL1Wily-yrQb5AAEnzlwS3ew092.jpg" target="_blank"></a>

<a href="https://lyncdiscover.i-x-cloud.com/" target="_blank">https://LyncDiscover.i-x-Cloud.com</a>

<a href="http://s3.51cto.com/wyfs02/M01/6F/97/wKioL1WilzCh6AaWAADm2XhIOg4926.jpg" target="_blank"></a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/97/wKioL1WilzOCRmTmAAMJmP4DvRU296.jpg" target="_blank"></a>

<a href="https://mail.i-x-cloud.com/owa" target="_blank">https://mail.i-x-cloud.com/owa</a>

<a href="http://s3.51cto.com/wyfs02/M02/6F/9A/wKiom1WilV6RwCsiAAE1zMuXGwg592.jpg" target="_blank"></a>

<a href="https://mail.i-x-cloud.com/ecp/" target="_blank">https://mail.i-x-cloud.com/ecp/</a>

<a href="http://s3.51cto.com/wyfs02/M00/6F/9A/wKiom1WilV-w3A2uAAGOJWyP3ss668.jpg" target="_blank"></a>

本文轉自 CTO_LiuJinFeng 51CTO部落格,原文連結:http://blog.51cto.com/dynamic/1673603x,如需轉載請自行聯系原作者