The test was conducted using http://localhost/test.php and no problem was found. Later, if you want to test it on the intranet, you need to use the IP address for access, such as: http://10.10.50.195/test.php, This problem arises.
Modify the php configuration file httpd.conf.
Find the configuration section in the original location file:
-
- Options FollowSymLinks
- AllowOverride None
- Order deny,allow
- Deny from all
- Satisfy all
-
Copy code
Modified to:
-
- Options FollowSymLinks
- AllowOverride None
- Order deny,allow
- # Deny from all
- Allow from all
- #Allow all access
- Satisfy all
Copy Code
Also:
-
- #
- # 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
- #
- # 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.
- #
- # onlineoffline tag - don't remove
- Order Deny,Allow
- Deny from all
- Allow from 127.0.0.1
-
Copy the code
and modify it to:
-
- #
- # 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
- #
- # 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.
- #
- # onlineoffline tag - don't remove
- Order Deny,Allow
- # Deny from all
- # Allow from 127.0.0.1
- Allow from all
-
Copy the code
then save, restart the service, and visit again It was discovered that the problem had been resolved.
|