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

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

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

AllowOverride None 将None改为 All

  1. DocumentRoot "/Library/WebServer/Documents"
  2. <Directory "/Library/WebServer/Documents">
  3. #
  4. # Possible values for the Options directive are "None", "All",
  5. # or any combination of:
  6. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  7. #
  8. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  9. # doesn't give it to you.
  10. #
  11. # The Options directive is both complicated and important. Please see
  12. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  13. # for more information.
  14. #
  15. Options FollowSymLinks Multiviews
  16. MultiviewsMatch Any
  17. #
  18. # AllowOverride controls what directives may be placed in .htaccess files.
  19. # It can be "All", "None", or any combination of the keywords:
  20. # AllowOverride FileInfo AuthConfig Limit
  21. #
  22. #AllowOverride None
  23. AllowOverride All #这里这里!!!
  24. Order deny,allow
  25. Allow from all
  26. #
  27. # Controls who can get stuff from this server.
  28. #
  29. Require all granted
  30. </Directory>