Critical error: You don't have permission to access / on this server
Open the web page, and the result is an access prompt: 403 error! Turn off IE's "Show Friendly HTTP Errors", and it shows that there is no permission to access (You don't have permission to access / on this server)!
I thought that I probably didn't have permission to access the directory, because generally, NTFS controls access permissions very strictly!
So I opened the directory and saw that the access permissions were completely controlled by everyone! Then the user would have absolutely no problem with the folder access permissions! It must be a configuration problem with Apache, so I searched online and found the following relevant information for modification Permissions.
The following is the quoted content: <Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all Satisfy all </Directory> |
According to the configuration file prompts, this setting is used to modify Apache’s access permissions to all directories. If modified arbitrarily, it may cause security risks! Let’s take a look at what is causing trouble and preventing us from accessing web pages. !
Deny from all can be seen by anyone with a basic knowledge of English. Here is the key: Deny from all!
Try changing Deny to Allow! (Because there may be case sensitivity issues, it is recommended to use capital letters. If you are interested, you can try lowercase yourself!) It passed at once, but if configured like this, the server security will be...
So I continued to look at the configuration file!
Found the following
#
# This should be changed to whatever you set DocumentRoot to.
#
The meaning of the above line of comments: No matter what your server root directory is set to, you must ensure that the configuration here 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. # # 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 # # </Directory> |
Then set the above "Default Directory" to the "Target Directory" (of course, the settings for all permission access have been modified to deny!) Refresh the page, OK, passed!