Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to rename the Default Web Site in IIS 7.5?

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?

like image 690
JK. Avatar asked Jan 12 '12 09:01

JK.


People also ask

Can you rename a site in IIS?

You can rename the website by changing the "path" in applicationHost. config. The applicationHost. config file in this path: C:\Windows\System32\inetsrv\config.

What is default Web site in IIS?

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.


1 Answers

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.

like image 131
JK. Avatar answered Sep 22 '22 02:09

JK.