Trouble accessing different drive (not default) in Apache 2.2 on Windows XP

Discussion in 'Apache' started by alaskana, Sep 25, 2011.

  1. #1
    I installed Apache 2.2 on my Windows XP SP3 box and most everything works
    fine (can load page, etc) except when I try to access a local file that is outside
    of the directory specified in Document Root (which is C:/). I either get an access
    denied error or nothing happens when I click the link. The links to my other test
    files which are under C:/ load fine. But again nothing will happen when I
    try to access testf.txt in F:/. I'm just trying to set up a webpage on my
    local network that can access all of my various drives on my server. Right now
    I can only access one drive at a time, which is whatever drive is specified
    in the document root line (in this case C:/).

    Here's my test index.html page:


    "
    <html>
    <body>
    <h1>Test Page</h1>

    <A HREF="F:/testf.txt">testf</A> #Link does not work, file location if F:/test1.txt
    <br>
    <br>
    <A HREF="test1.txt">File 1</A> #Link works, file location is C:/test1.txt
    <br>
    <br>
    <A HREF="test/test2.txt">File 2</A> #Link works, file location is C:/test/test2.txt

    </body>
    </html>
    "

    The Document Root and Directory are both set to C:/ in httpd.conf and my
    Apache server service is running as a local system account. When I hover over
    the testf.txt link on my test page file:///F:/testf.txt shows up.

    I guess my question at this point is it possible to access a file in F:/ when Document Root
    and Directory both are set as C:/ ? Or am I referencing the F:/ drive and file wrong in my
    index.html file. I double checked that there is an testf.txt under F:/.

    Any help would be greatly appreciated!
     
    Last edited: Sep 25, 2011
    alaskana, Sep 25, 2011 IP