Previous Next

Thread: Can't view pages outside root directory

Last post 05-13-2008 4:39 AM by brashquido. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 05-12-2008, 12:18 PM

    • whobutsb
    • Not Ranked
    • Joined on 05-08-2008, 8:13 PM
    • Posts 4

    Can't view pages outside root directory

    Hello All-

    I'm having the issue where I can't view php pages beyond the Root Directory of my website.

    My environment is:

    Windows Server 2003
    IIS6
    PHP 5.0
    MSSQL Server 2005

    Whenever I click on a link or navigate to a page beyond my root directory the browser just hangs and then eventually times out.  Any thoughts?


     

  • 05-12-2008, 2:05 PM In reply to

    Re: Can't view pages outside root directory

    Bummer.  Of course that's the way it's supposed to be, so it's only a bummer for you.  :)

    Security prevents you from accessing folders outside the web site hierachy.  Using virtual folders solves the problem you have by placing a folder within the hierachy virtually even though physically it lies elsewhere.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 05-12-2008, 2:15 PM In reply to

    • whobutsb
    • Not Ranked
    • Joined on 05-08-2008, 8:13 PM
    • Posts 4

    Re: Can't view pages outside root directory

    Can I create a Virtual Folder of my root directory Or do I need to create Virtual Folders for all my sub-directories?

     

     

  • 05-13-2008, 4:39 AM In reply to

    Re: Can't view pages outside root directory

    If your webroot is D:\web and the directories are in D:\web\somefolder then it sounds like it could be a straight permissions issue (make sure all your sub directories are set to inherit your root folder permissions).

    However, if your webroot is D:\web and the directories you are trying to access are located in D:\somefolder then you will need to create virtual directories as Jeff said.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (4 items)
Page view counter