mac系统下php项目除了首页全访问不了
发布:smiling 来源: PHP粉丝网 添加日期:2020-02-22 16:52:18 浏览: 评论:0
有网友反映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>
Tags: mac系统php项目
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)