I am having a problem deploying to Default Web Site using web deploy. The problem is similar to this: MSDeploy batch file does not handle quotes anymore where web deploy is choking on deployment paths with spaces.
The easiest way to solve it would be to rename Default Web Site to something else without spaces. Is it safe to rename Default Web Site? Will it cause any side effects?
You can rename the website by changing the "path" in applicationHost. config. The applicationHost. config file in this path: C:\Windows\System32\inetsrv\config.
The Default Website is what its name says, a convenience website that is created when IIS is installed. It can be deleted and replaced by new websites, but its advantage is that it will work "out-of-the-box" with all definitions and permissions already taken care of.
Well, I tried it and the answer is Yes - you can rename the Default Web Site without any side effects.
You do need to recycle the application afterwards, and then everything will operate as before.
Any script that refers to Default Web Site (eg web deploy) needs to be updated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With