Shashank S Chandel
Shashank S Chandel

Reputation: 315

Unable to set default document in IIS 8

My Application is upgraded to windows 2012 on IIS8. Application functioning is also as expected. However, IIS8 does not provide facility to set separate default document pointing on different port but referring same virtual directory. Request let me know the solution to configure this on IIS 8

Upvotes: 1

Views: 6917

Answers (2)

Shashank S Chandel
Shashank S Chandel

Reputation: 315

After working on IIS the conclusion is we can set the different default page for two virtual directories directing to same path on IIS8 with changes in ApplicationHost.config and removing the default documents from the web.config in System.webserver

Upvotes: 0

Pankaj Kapare
Pankaj Kapare

Reputation: 7802

  1. Open IIS manager Start->run->Inetmgr.
  2. Select your server in left pane and double click "Default Document" in IIS section as shown below. Enabling default document feature at server level is needed only if you need default document feature enabled for any new application you add to iis else just enable it to your site/application. enter image description here

  3. In right hand pane click enable link if its not enabled as show below. enter image description here

  4. Repeat step 2 and 3 for your application.
  5. Additionally if your default page (e.g. index.htm) resides at bottom of default document list then you can move it up using action pane located on right side.

Upvotes: 1

Related Questions