locked
multiple site in folder error RRS feed

  • Question

  • User-535616387 posted

    Hi guys, 

    i am using IIS 7, i have site called "A"  i access with this url : http://A.default.aspx

    i created another site called "B" i would like the url called  : http://A/B

    the url : http://A.default.aspx can be accessed.

    the url  http://A/B get this error : The Web server is configured to not list the contents of this directory.

    please advice what's wrong with my configuration ?

    Thankyou & Best Regards,
    Wibowo Wiwit.

    Thursday, January 10, 2019 1:11 AM

All replies

  • User-1716253493 posted

    You should set B as an app folder, then set default document for B app such as default.aspx

    <configuration>
       <system.webServer>
          <defaultDocument enabled="true">
             <files>
                <add value="default.aspx" />
             </files>
          </defaultDocument>
       </system.webServer>
    </configuration>

    Thursday, January 10, 2019 2:22 AM
  • User-893317190 posted

    Hi wibowowiwit,

    A url refers to an aspx in webform.

    For example , http://localhost:7000/A/B means you want to visit B folder in A fold  and A folder is in the root path of your website.

    By default, iis doesn't allow the user to visit a url refers to a folder.

    So , you had better input a url that refers to an aspx page.

    For example, you could input http://A/B/c.aspx  ,if your website has an aspx named c.aspx in folder B.

    Best regards,

    Ackerly Xu

    Friday, January 11, 2019 1:50 AM