加入收藏 | 设为首页 | 会员中心 | 我要投稿 拼字网 - 核心网 (https://www.hexinwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

mac系统下php项目除了首页所有访问不了

发布时间:2022-06-20 12:49:35 所属栏目:PHP教程 来源:互联网
导读:有网友反映mac配置apache的有问题,除了首页全都访问不了。 小编找来了相关的解决办法,有需要的朋友可以来了解一下。 httpd.conf配置文件中加载了mod_rewrite.so模块 AllowOverride None 将None改为 All DocumentRoot /Library/WebServer/Documents Directo
  有网友反映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.
  
      #AllowOverride None
  
       AllowOverride All         #这里这里!!!
  
       Order deny,allow
  
       Allow from all
  
      #
  
      # Controls who can get stuff from this server.
  
      #
  
      Require all granted
  
  </Directory> 。

(编辑:拼字网 - 核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!