ubuntuではhttpd.confが無く、/etc/apache2/apache2.confにあるconfファイルの設定になります。
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
#AllowOverride None //ここを下記の様に変更。
AllowOverride All
Require all granted
</Directory>
ubuntuの場合apache関連の設定は
/etc/apache2/直下の各ファイルを設定変更が必要。
apache2.conf //今回はここ
conf-enabled
magic
mods-enabled
sites-available
conf-available
envvars
mods-available
ports.conf
sites-enabl
参考サイト:https://www.t3a.jp/blog/infrastructure/apache-htaccess-enable/