3

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?

1 Answer 1

0

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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.