我正在尝试在Mac OS X Yosemite 10.10.5
和Apache
服务器版本
服务器版本:Apache / 2.4.16(Unix)服务器内置:2015年7月22日 21时03分09秒
当我使用localhost作为URL
时(已移除index.html
),我收到此错误
异常处理程序
中的错误
我尝试过调试但无法找到解决方案。
我也尝试更改httpd.conf
文件,但仍然没有修复。
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory /Library/WebServer/Documents/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
和
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 All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
我想在浏览器中看到文件夹结构。