修改httpd.conf
<IfModule>
Alias /libs"/opt"
</IfModule>
<Directory "/opt">
# Options Indexes FollowSymLinks MultiViews
# AllowOverride all
# Order Allow,Deny
# Allow from all
AllowOverrideNone
optionsNone
Requireall granted
</Directory>
问题一般都出在<Directory> 内,安上面设置就可以了