Apache forbidding file viewing

mwhite

New Member
Messages
2
Reaction score
0
Points
0
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?
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
you need to enable the file viewing... but I don't know how to do it.
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
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:

woiwky

New Member
Messages
390
Reaction score
0
Points
0
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.
 

vol7ron

New Member
Messages
434
Reaction score
0
Points
0
httpd.conf needs to be created/modified

edit:
oops didn't see the other posts... yes copy that code above
 
Last edited:
Top