以下設定する。
<Directory /srv/www>
Require all granted
</Directory>
Require all granted
が肝。
よくある間違い
間違い
<Directory /srv/www>
Order allow,deny
Allow from all
</Directory>
これは穴を突かれた時/以下をapache権限の範囲で見られると思う
<Directory />
Options FollowSymLinks
AllowOverride None
- Require all denied
+ Require all granted
</Directory>