+ Reply to Thread
Results 1 to 6 of 6

Thread: Apache forbidding file viewing

  1. #1
    mwhite is offline x10Hosting Member mwhite is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    2

    Apache forbidding file viewing

    Hi all,
    I've set up Apache to be able to look at my C:\ and F:\ drives in Vista x86. The code in httpd.conf looks like this:
    Code:
    Alias /hdc/ C:/
    Alias /hdf/ F:/
    I have "File Thingie" installed, and have modified it to link to the files as http://localhost/hdf/ and then the file name/extension. However, when I try to load a file, it brings up an Apache error message:
    Access forbidden!

    You don't have permission to access the requested object. It is either read-protected or not readable by the server.
    If you think this is a server error, please contact the webmaster.
    Error 403

    What do I need to do to get Apache to work in this situation?

  2. #2
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,435

    Re: Apache forbidding file viewing

    you need to enable the file viewing... but I don't know how to do it.

  3. #3
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: Apache forbidding file viewing

    You will need to add something like the following to your httpd.conf file for both the C:\ and the F:\ drives

    Code:
    <Directory "C:/">
    AllowOverride All
    Options Indexes FollowSymLinks MultiViews +Includes
    Order allow,deny
    Allow from all
    </Directory>
    Last edited by TechAsh; 07-11-2008 at 01:56 AM.
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  4. #4
    mwhite is offline x10Hosting Member mwhite is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    2

    Re: Apache forbidding file viewing

    I tried adding the code, and it seems to work! Thanks!

  5. #5
    woiwky is offline x10 Lieutenant woiwky is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    390

    Re: Apache forbidding file viewing

    Just a note. The Indexes option allows people to browse all the files in a directory if it doesn't contain an index file. Unless you want that behavior, I would recommend removing the Indexes option.

    Code:
    <Directory "C:/">
    AllowOverride All
    Options FollowSymLinks MultiViews +Includes
    Order allow,deny
    Allow from all
    </Directory>
    This means that directories which don't have an index.html or .php or whatever will display a Forbidden message by default rather than showing all the files in that directory.
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

  6. #6
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: Apache forbidding file viewing

    httpd.conf needs to be created/modified

    edit:
    oops didn't see the other posts... yes copy that code above
    Last edited by vol7ron; 07-15-2008 at 10:40 PM.
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


+ Reply to Thread

Similar Threads

  1. Internal Serve Error
    By xaakx in forum Free Hosting
    Replies: 6
    Last Post: 02-03-2008, 08:02 AM
  2. configuring php on localhost
    By ufclan in forum Scripts & 3rd Party Apps
    Replies: 15
    Last Post: 01-22-2008, 08:34 AM
  3. installing Apache in Localhost.
    By naim4u in forum Tutorials
    Replies: 5
    Last Post: 01-20-2008, 04:46 AM
  4. help!!
    By retro-bliss in forum Free Hosting
    Replies: 25
    Last Post: 12-07-2007, 01:12 PM
  5. php version
    By loveispoison in forum Free Hosting
    Replies: 10
    Last Post: 11-21-2007, 10:53 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers