Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a Win2008 server with IIS 7 and I want to duplicate one web site and just change the binding port and the application pool that is using, so I will have 2 web sites (locally or remote) with same configuration but listening on different ports.

Is there a way to do this with web deploy tool ir order to deploy locally and remotely this unique web site and change the binding ports in the destination?

share|improve this question

1 Answer 1

I found another question that answers exactly what I need. I just made some adjusments to my scenario:

IIS7 - Web Deployment Tool - SetParam/SetParamFile to set http and https bindings + Cert

Now I can set the parameters in the command line like this:

msdeploy.exe -verb:sync
     -source:package=machinename.zip
     -dest:appHostConfig=NewSiteName,computername=webserver1
     -setParam:name=SiteA-http,value=*:8080:

and just change the "webserver1" and "8080" with what I need.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.