sudo apt install apache2 installs and starts the server (dnf, Snap and Flatpak installs the whole stack). What matters more is which files it reads, because Ubuntu 225 splits one configuration into dozens:
apache2 -v | head -1
sudo apache2ctl -t -D DUMP_INCLUDESServer version: Apache/2.4.66 (Ubuntu)
Included configuration files:
(*) /etc/apache2/apache2.conf
(146) /etc/apache2/mods-enabled/access_compat.load
...
(150) /etc/apache2/ports.conf
(222) /etc/apache2/conf-enabled/charset.conf
...
(225) /etc/apache2/sites-enabled/000-default.confThe number is the line of apache2.conf whose Include pulled the file in, so the list is the load order: module .load and .conf files, ports.conf with the Listen lines, global snippets from conf-enabled/, then one file per site. Files load alphabetically, which is why the default site is 000-default.conf. Each *-enabled/ directory holds symlinks into its *-available/ twin, managed by a2enmod, a2ensite, a2enconf and their a2dis* opposites: edit the file, never the link. Red Hat's /etc/httpd layout is mapped side by side in The Filesystem Hierarchy.