Apache (Windows) Help

Associate
Joined
1 Apr 2009
Posts
429
Hi There,

Have just started using Apache in Windows.

I have formed my index page within 'htdocs' and this is displaying nicely online.

I have a subfolder in 'htdocs' called 'images' and I wish to be able to link to the files I put in there. Unfortunately the server reports I do not have permissions to view the files when I attempt to access them online.

I have set the windows security permissions on the folder to allow for the SYSTEM which should allow Apache access but this has not fixed the issue.
I assume that there are settings in httpd.conf that allow access to all visitors to the subfolders.

Can anyone point me in the right direction?

Many Thanks
 
I think you need to place "Options Indexes" in httpd.conf within the relevant section for your document root, if you haven't already.
 
Do you get an HTTP error code, e.g. 403 Forbidden?

Does the "everyone" account have read access to the folder?
 
I get the following:

Forbidden
You don't have permission to access /images/clientlist_header.gif on this server.

I have granted full access for the 'everyone' account.

Can you elaborate on the 'options indexes' requirement please?
 
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>


Is this lower section the part I need to change?
 
What account does the apache service run under? Network Service or is it SYSTEM as you say?

Might be worth a double check.

Are you trying to list the folder?
 
Last edited:
Assuming Apache is on your local machine change these two lines:

Code:
Order deny,allow
Deny from all

to:

Code:
Order deny,allow
Allow from localhost

Restart Apache and try again.
 
Back
Top Bottom