MAC apache 2.4 启用目录访问

时间:2022-10-14 07:18:37

1. 打开 httpd.conf 文件,在Options 后面添加 "Indexes",如下:

<Directory "/Users/ChenShuo/Documents/Web">
Options Indexes FollowSymLinks Multiviews
MultiviewsMatch Any
AllowOverride All
Require all granted
</Directory>

修改 :

Options FollowSymLinks Multiviews

为:

Options Indexes FollowSymLinks Multiviews

2. 重启apache