mac系统下php项目除了首页全访问不了是什么原因

有网友反映mac配置apache的有问题,除了首页全都访问不了,小编找来了相关的解决办法,有需要的朋友可以来了解一下。

从网站建设到定制行业解决方案,为提供成都网站设计、成都网站制作服务体系,各种行业企业客户提供网站建设解决方案,助力业务快速发展。成都创新互联公司将不断加快创新步伐,提供优质的建站服务。

  1. httpd.conf配置文件中加载了mod_rewrite.so模块

  2. 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

以上就是mac系统下php项目除了首页全访问不了的详细内容,更多请关注创新互联其它相关文章!


标题名称:mac系统下php项目除了首页全访问不了是什么原因
本文路径:http://www.hxwzsj.com/article/ppjeoo.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 网站建设推广 高端网站设计 成都网站建设 H5网站制作 成都网站设计 外贸营销网站建设 重庆外贸网站建设 定制级高端网站建设 app网站建设 响应式网站设计方案 网站建设方案 品牌网站建设 LED网站设计方案 成都网站建设 成都网站制作 企业网站建设 营销型网站建设 成都网站设计 网站制作公司 成都网站建设 网站建设改版 广安网站设计