Some netizens reported that there was a problem with configuring apache on Mac. They could not access anything except the homepage. The editor found relevant solutions. Friends in need can come and find out.
The mod_rewrite.so module is loaded in the httpd.conf configuration file
AllowOverride None Change None to All
DocumentRoot "/Library/WebServer/Documents" <Directory "/Library/WebServer/Documents"> # # 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.4/mod/core.html#options # for more information. # Options FollowSymLinks Multiviews MultiviewsMatch Any # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # #AllowOverride None AllowOverride All #这里这里!!! Order deny,allow Allow from all # # Controls who can get stuff from this server. # Require all granted </Directory>
[Recommended tutorial: php programming from entry to mastering a full set of video tutorials]
The above is the detailed content of The php project under the mac system cannot be accessed except for the home page.. For more information, please follow other related articles on the PHP Chinese website!