Visit website 403 error Forbidden solution

  
                  Open the web page, the result access prompt: 403 error! Closed IE's "Show friendly HTTP error", showing no access (You don't have permission to access /on this server)!
I think probably no Permission to access the directory, because in general, NTFS is very strict on the access control!
Then open the directory, at first glance, the access is actually the full control of everyone! That user is absolutely in the folder access rights No problem! It is definitely a configuration problem of apache, so I searched the Internet and found the following information for modifying the permissions.


The following is the content of the reference:
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
</Directory>


According to the configuration file prompt, this setting is It is a security risk to modify Apache's access to all directories. If you arbitrarily modify it, it may bring security risks! Let's see what is working, so that we can't access the webpage!
Deny from all English-based You can see it, here is the key: reject all!
Try Deny to Allow! (Because there may be case-sensitive questions, it is recommended to capitalize the first letter, if you are interested, you can try lowercase yourself!) I passed it, but if it is configured, the server security will be...
So I continue to look at the configuration file!


The following content was found
#
# This should Be changed to whatever you set DocumentRoot to.
#
The meaning of the above line comment: Regardless of your server root directory settings, you must ensure that the configuration is consistent!


The following is the quoted content:
<Directory "Default Directory">
#
# 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.< BR> #
# The Options directive is bot h complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# 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>


Set the above "Default Directory" to "Target Directory" (of course, the settings for all access rights have been changed to Reject!) Refresh the page, OK, passed!

Copyright © Windows knowledge All Rights Reserved