Apache HTTP Server ยท v2.4

The server is up and listening.

You have reached the default page for an Apache HTTP Server installation. The administrator has not yet replaced the standard index.html in the document root, so this notice is shown instead.

Apache has been an internet workhorse for decades. Whatever you intend to deploy, this server is ready to host it.

Where the file lives

On Debian and Ubuntu, the default document root is /var/www/html. On RHEL and CentOS, it is the same path. Replace index.html with your own content to remove this page.

Add a virtual host

  1. Drop a config file into /etc/apache2/sites-available/.
  2. Enable it with a2ensite yoursite.conf.
  3. Reload: sudo systemctl reload apache2.
Always run apachectl configtest before a reload. The check is fast and stops typos from ever reaching the running server.

HTTPS

Use an ACME client to issue a certificate, then add the matching <VirtualHost *:443> block referencing the certificate and key files. Most distributions ship a default-ssl.conf template to copy and adapt.

Modules

Documentation

Full reference manual at httpd.apache.org/docs.

โ€” srv-archive-2 โ€”