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:
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:
and finally, view current config of server farm:
appcmd.exe list config /section:webfarms
should like:
references:
http://www.iis.net/learn/get-started/getting-started-with-iis/getting-started-with-appcmdexe
update:
you may generate powershell script iis manager.
web server (iis) administration cmdlets in windows powershell
also, may edit c:\windows\system32\inetsrv\config\applicationhost.config
file manually.
Comments
Post a Comment