Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Application Request Routing Server Farm Settings

On an IIS server with Application Request Routing, new server farms to be routed to can be added by right-clicking Server Farms -> Create Server Farm.

This will pop up a dialog where the settings for the server farm can be entered. I did not manage to find a way to edit or view these settings after they are accepted in the Create-Serverfarms-dialog.

My question is therefore: How can I edit the target-url, http-port and https-port settings of a server farm outside of the create-serverfarm dialog?

like image 654
Wilbert Avatar asked May 06 '13 08:05

Wilbert


People also ask

Where is Application Request Routing Cache in IIS?

Navigate to Application Request Routing UI at the server level in IIS Manager. Click on Browse cache content in the actions pane on the right. Verify that responses are cached on the primary cache drive. Verify that the contents also exist on the secondary cache drive location.

What is Application Request Routing in ASR?

Microsoft Application Request Routing (ARR) for IIS 7 and above is a proxy-based routing module that forwards HTTP requests to content servers based on HTTP headers, server variables, and load balance algorithms. ARR can be used to: Increase application availability and scalability.


1 Answers

You could use the command line to do so.

For example, lets say we have a Server Farm called test with one application server www.example.com in it:

www.example.com

All the following commands need to be run in the %windir%\system32\inetsrv directory unless you have it in your PATH.
To change the target-url of the application server to www.google.com, use:

appcmd.exe set config /section:webFarms /"[name='test'].[address='www.example.com']".address:www.google.com

You can change any parameters the way you would do it with the dialog (and even more).
To get the list of parameters you can use with the command line:

appcmd.exe set config -section:webFarms -?

And particularly the section you seem to be interested by:

interesting settings

And finally, to view the current config of your server farm:

appcmd.exe list config /section:webFarms

Should get you something like:

config

References:

http://www.iis.net/learn/get-started/getting-started-with-iis/getting-started-with-appcmdexe

http://www.iis.net/learn/extensions/configuring-application-request-routing-(arr)/define-and-configure-an-application-request-routing-server-farm

Update:

You may generate PowerShell script from IIS Manager.

IIS Manager 1

IIS Manager 2

Web Server (IIS) Administration Cmdlets in Windows PowerShell

Also, you may edit C:\Windows\System32\inetsrv\config\applicationHost.config file manually.

like image 72
cheesemacfly Avatar answered Sep 26 '22 11:09

cheesemacfly