6

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?

Community
  • 1
  • 1
JK.
  • 21,477
  • 35
  • 135
  • 214
  • Why dont you create a new website and associate the port 80 to http. But you need to have your Default Web Site stopped as a single port can be associated with only one website to listen. You would not bother about renaming and the consequences. – Rajesh Jan 12 '12 at 09:37
  • All the virtual directories etc are already setup under Default Web Site. It would take some time to recreate all of that under a new website. Rename on the other hand would only take a few seconds. – JK. Jan 12 '12 at 09:54
  • I have done this with no ill-effect. – mikey Jan 12 '12 at 17:50
  • Most people don't run around with a project called "Default Web Site" clearly this can be changed. – Security Hound Jan 12 '12 at 17:59

1 Answers1

8

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.

JK.
  • 21,477
  • 35
  • 135
  • 214