mac设置首页访问php,mac系统下php项目除了首页全访问不了
有網(wǎng)友反映mac配置apache的有問題,除了首頁全都訪問不了,小編找來了相關的解決辦法,有需要的朋友可以來了解一下。httpd.conf配置文件中加載了mod_rewrite.so模塊
AllowOverride None 將None改為 All
DocumentRoot "/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
總結(jié)
以上是生活随笔為你收集整理的mac设置首页访问php,mac系统下php项目除了首页全访问不了的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php动态成本管理,网上审批系统环境下的
- 下一篇: php教程知识点归纳,PHP知识点小结