« Previous Next »

Thread: Default Web Site access to wwwroot folder

Last post 06-24-2006 3:14 PM by jeff@zina.com. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 06-21-2006, 3:58 PM

    Default Web Site access to wwwroot folder

    In IIS, I have the Default Web Site pointing to the directory c:/Inetpub/wwwroot/App1. I want to keep it that way. However, when I type in the machine's IP in a browser from an external computer, there's a list of files and directories in the c:/Inetpub/wwwroot/App1 folder, and I also want access to the directories and files in c:/Inetpub/wwwroot/. How can I accomplish this?
  • 06-21-2006, 7:10 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,163
    • IIS MVPs

    Re: Default Web Site access to wwwroot folder

    Create an alternate 2nd web site using that as the root or map a virtual directory to it (but that would be kind of funky as you would also be able to navigate down through App1).
  • 06-22-2006, 12:18 PM In reply to

    Re: Default Web Site access to wwwroot folder

    I tried creating a virtual directory to point to folder c:/Inetpub/wwwroot/App2. However, the folder is still not visible when I access the site on the browser. Is there anything else I need to do that I may be missing?
  • 06-22-2006, 3:45 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,163
    • IIS MVPs

    Re: Default Web Site access to wwwroot folder

    What you're saying doesn't make sense.  You would create a virtual directory off of your web site root named App2 and point it to C:\inetpub\wwwroot, so http://yourdomain.com/App2/ would actually map to C:\inetpub\wwwroot.  Of course it sounds confusing, but what you're trying to do is confusing.  C:\inetpub\wwwroot is intended to be the root.  There's no "clean easy way" to make files above the web site root available.
  • 06-23-2006, 6:43 PM In reply to

    Re: Default Web Site access to wwwroot folder

    Don't worru about it; I've gotten it taken care of. I found I can now access the other folders in wwwroot, even if it's not listed in the directory listing. Thanks for the help.
  • 06-24-2006, 3:14 PM In reply to

    Re: Default Web Site access to wwwroot folder

    Pretty much you are trying to get to files above the root of your web site, which for a myriad of reasons can't or shouldn't be done.  Why not just point the root of the site at wwwroot instead of app1?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (6 items)
Microsoft Communities