I am trying to take an existing copy of a IIS website folder, put in a new folder and run a new site from IIS. But the default page set in web.config file is not picked up by IIS… When I type the site url in the browser, only the directory listing appears. (But that can be switched-off by turning off the directory listing option) I have not changed the default page setting for this website.
Below is the web.config setting
<authentication mode="Forms">
<forms loginUrl="~/account/signin" timeout="600" cookieless="UseCookies" />
</authentication>
–UPDATED–
The applicationHost.config file
<applicationPools>
<add name="student2" autoStart="true" enable32BitAppOnWin64="true" managedRuntimeVersion="v4.0" />
<applicationPoolDefaults managedRuntimeVersion="v4.0">
<processModel identityType="ApplicationPoolIdentity" />
</applicationPoolDefaults>
</applicationPools>
<site name="student2" id="20" serverAutoStart="true">
<application path="/" applicationPool="student2">
<virtualDirectory path="/" physicalPath="C:Websitesstudent2" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:52000:" />
</bindings>
</site>
3
Please ensure default document is enabled in IIS:
- Open IIS Manager.
- Select the site you want to configure.
- Double-click on the Default Document feature in the IIS section.
- Ensure that the page you want to set as the default (e.g. index.html) is listed. If not, click Add and enter the correct default page.
- Restart the website or do an IIS reset after making changes.
2