Restore Default Website in IIS

I accidentally deleted the default website in IIS; It no longer appears in the IIS Manager tree, and viewing "localhost" returns a 404 error.

I reinstalled IIS, but the default website still does not exist ... Is it possible to recreate the default website so that I can create my folder inside?

+61
iis
Apr 15 '09 at 7:20
source share
9 answers

Did the same. Failed to recreate the default website directly - he continued to complain that the file already exists ...

I is fixed as follows:

  • Create a new website called something else, for example. "Default", pointing to "C: \ inetpub \ wwwroot"
  • It should be created with identifier 1 (at least mine was)
  • Rename the website to "Default Website"
+47
Nov 15 '11 at 16:38
source share

The other answers are mostly right, thanks to them I was able to restore my website to default, they simply lack more or less important details.

This was the complete process of restoring the default website in my case ( IIS 7 on Windows 7 64 bit):

  • open IIS Manager
  • right-click the node nodes under your machine in the connection tree on the left and click Add Site
  • enter the default website "as the site name
  • set the application pool back to DefaultAppPool !
  • set Physical path to %SystemDrive%\inetpub\wwwroot
  • leave the binding and everything else like



Possible problems :

  • If the new website cannot be started with the following message:

    Internet Information Services Manager The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

    ... it is possible that port 80 is already assigned to another application (Skype in my case :). You can change the binding port, for example. 8080 by right-clicking on the default website and selecting "Edit Bindings" ... and "Edit." See Error 0x80070020 when trying to run a website in IIS 7.0 . Or you can just close the application sitting on port 80, of course.

  • Some applications require that the default website ID is 1 . In my case, he received identifier 1 after rest automatically. If this is not your case, see Re-create the "default website" in IIS after accidentally deleting it . This is different for IIS 6 and 7.




Note I had to recreate the default Web site because I was unable to even open the project configured to work in IIS in Visual Studio . I had a solution with several projects inside. One of the projects failed to load the following error message:

The web application project is configured to use IIS. Web server http: // localhost: 8080 / 'not found.

After I restored the default website in IIS Manager, I was able to restart and open this particular project.

+43
May 6 '15 at 17:04
source share

I assume that you want to publish and access your applications / websites from a local network; probably as virtual directories under the default website. The steps may vary depending on your version of IIS, but basically it comes down to the following steps:

Restore Default Website Website:

  • create a new website

  • set "Default Website" as its name

  • In the Binding section (bottom panel), enter your local IP address in the IP Address editor.

  • Save the empty "Host" message

what is it: now when you enter your local IP address in your browser, you will get the site you just added. Now, if you want to access any other web applications / websites from your local network, simply add the virtual application under your default website, pointing to the directory containing your published application / website. Now you can enter: http: // yourLocalIPAddress / theNameOfYourApplication to access it from the local network.

+9
Dec 09 '11 at 10:55
source share

You can try to restore the previous state by following these steps:

  • Go to IIS Manager
  • Right-click your local computer.
  • Specify All Tasks
  • Specify Backup / Restore Configuration
  • Select the configuration you want to restore
  • Wait until the setting is applied.
+3
Jun 01 '13 at 11:24
source share

Try the following:

In IIS Manager, right-click on websites, select "Create", then website ...

This way you can recreate the default website.

After these steps, restart IIS: right-click on the local computer, All Tasks, Restart IIS ...

0
Apr 15 '09 at 13:36
source share

The default website did not appear in the IIS Manager site tree after it was deleted, although when I tried to create it, I received the following error message:

A website with the same name already exists

So, I deleted the default website by executing these commands sequentially on the command line running as administrator :

 cd %windir%\system32\inetsrv appcmd delete site "Default Web Site" 

And after that, I was able to create the default website again.

0
Jun 03 '16 at 15:09
source share

Check out this answer on SuperUser:

In short: reinstall IIS and WAS.

More details -

Step 1

Go to "Add Uninstall Programs" "Turn Windows Features On or Off" Remove IIS and WAS (Windows Activation Service) Restart your computer Step 2

Go to the "Add Uninstall Programs" section "Turn Windows Features On or Off" Turn on IIS and WAS (Windows Activation Service) Note. Reinstalling IIS will not help. You must reinstall IIS and WAS

This approach fixed the problem for me.

0
Jun 08 '17 at 13:16
source share

Follow these steps Restore your default website website:

  • create a new website
  • set "Default Website" as its name
  • In the Binding section (bottom panel), enter your local IP address in the IP Address editor.
  • Save the empty "Host" message
0
Nov 28 '17 at 9:50
source share

I deleted the C: \ inetpub folder and reinstalled IIS, which recreated the website and the default settings.

-one
Jul 30 '15 at 14:35
source share



All Articles