有网友反映mac配置apache的有问题,除了首页全都访问不了,小编找来了相关的解决办法,有需要的朋友可以来了解一下。
httpd.conf配置文件中加载了mod_rewrite.so模块
allowoverride none 将none改为 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>
【推荐教程:php编程从入门到精通全套视频教程】
以上就是mac系统下php项目除了首页全访问不了的详细内容。