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? Commented May 14, 2015 at 11:43
  • Plesk >> Websites & Domains >> Show Advanced Options >> Virtual Directories >> Directory Properties Commented May 14, 2015 at 11:47
  • Is it iis your hosting in? Commented May 14, 2015 at 11:48
  • @Izzy yes, it opens Login.aspx while I want to make UserPanel.aspx my start page Commented 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>
Sign up to request clarification or add additional context in comments.

2 Comments

Try changing the value to UserPanel.aspx (edited)?
I think you are looking for this: stackoverflow.com/questions/421778/…

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.