0

Parallel Plesk is not opening default page on my domain name which I've set in the default directories, instead it is opening a login page of my ASP.NET web application. However it opens default page on my domain name once I logged in by giving right credentials. Here is my web.config file:

<system.web>
    <compilation debug="true" targetFramework="4.5" />
    <authentication mode="Forms">
        <forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH"></forms>
    </authentication>      
    <httpRuntime targetFramework="4.5" maxRequestLength="20896" />
    <authorization>
        <deny users="?"/>
    </authorization>
</system.web>

<location path="UserPanel.aspx">
    <system.web>
         <authorization>
             <allow users="*"/>
         </authorization>
    </system.web>
</location>
4
  • Where you setting the default page?
    – Izzy
    May 14, 2015 at 11:43
  • Plesk >> Websites & Domains >> Show Advanced Options >> Virtual Directories >> Directory Properties May 14, 2015 at 11:47
  • Is it iis your hosting in?
    – Izzy
    May 14, 2015 at 11:48
  • @Izzy yes, it opens Login.aspx while I want to make UserPanel.aspx my start page May 14, 2015 at 12:05

1 Answer 1

1

If you are hosting on IIS (7 or later), inside the <system.webServer> (of your web.config) add:

<defaultDocument>
    <files>
        <clear/>
        <add value="UserPanel.aspx" />
    </files>
</defaultDocument>
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.