WorldDrknss wrote:Try changing
- Code: Select all
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
to
- Code: Select all
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
In your httpd.conf, save then restart apache.
@jgarytDoing that will open your server and other directories to a security risk and should never be changed from the default. There is a very good reason to not open directories to those script kiddies that might have you condone this behaviour for thier own ends. So be advised.
httpd.conf wrote:#
# 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>
If you look at the next entry below this it will show you how the
htdocs directory is given permissions. Just add your Directory directive either above the
htdocs entry or below it. Then save and restart Apache.
You don't need to create a Directory directive for
htdocs/MyDir as the directory
htdocs and its
subdirectories has already been given the right permissions.
- Code: Select all
#
# 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 "/xampplite/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
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI
#
# 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 All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
See
http://httpd.apache.org/docs/2.2/mod/co ... #directory for explanation of this directive.
For
Security Tips read this:
http://httpd.apache.org/docs/2.2/misc/s ... erverfiles
Go safe and be as secure as you can.