Forum Moderators: phranque
The error log has this error:
[Mon Jan 21 09:37:24 2008] [error] [client 127.0.0.1] client denied by server configuration: D:/MP3/
I guess i don't have permission? How do I change that? :( I can't find why!
This should be changed to whatever you set DocumentRoot to.
So it is not enough just to modify your DocumentRoot, but you have to tell Apache that it can serve files from that directory (by default everything is denied).
One more question; if i want to enable some sort of .htaccess on my root directory, how would i go about doing that? i found a couple of tutorials, but they didn't help (i guess windows and the linux versions are different or something).
i just want a password prompt to come up on the root directory. i'm familiar with creating the .htpasswd files.
how would i do that?
Thanks in advance :)
I feel like a real noob, but here's what i did, and i can't figure this out:
====================================
# 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>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# [httpd.apache.org...]
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
====================================
I've tried putting the following code practically everywhere, but the service fails to start each time.
AuthType Basic
AuthName "Restricted Files"
AuthUserFile C:\Program Files\Apache Software Foundation\Apache2.2\bin\neri
Require user neri
Where exactly should i place it, and is it in the right format? :-/