url rewriting - IIS Application Request Routing Server Farm Settings -


on iis server application request routing, new server farms routed can added right-clicking server farms -> create server farm.

this pop dialog settings server farm can entered. did not manage find way edit or view these settings after accepted in create-serverfarms-dialog.

my question therefore: how can edit target-url, http-port , https-port settings of server farm outside of create-serverfarm dialog?

you use command line so.

for example, lets have server farm called test 1 application server www.example.com in it:

www.example.com

all following commands need run in %windir%\system32\inetsrv directory unless have in path.
change target-url of application server www.google.com, use:

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

you can change parameters way dialog (and more).
list of parameters can use command line:

appcmd.exe set config -section:webfarms -? 

and particularly section seem interested by:

interesting settings

and finally, view current config of server farm:

appcmd.exe list config /section:webfarms 

should 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 iis manager.

iis manager 1

iis manager 2

web server (iis) administration cmdlets in windows powershell

also, may edit c:\windows\system32\inetsrv\config\applicationhost.config file manually.


Comments