Gernot Walzl


Apache is free and open-source web server.
It powers most web sites on the internet.


The official Debian repository contains Apache and PHP:
apt-get install apache2 php libapache2-mod-php


When you own a domain (e.g., you can specify the zone of that domain.
For a web server, the following entries are relevant:

@    IN  A       ; IPv4 address for
@    IN  AAAA   2001:db8:10::1  ; IPv6 address for
www  IN  CNAME  @               ; is an alias for
@    IN  CAA    0 issue ""


The Certification Authority Authorization (CAA) defines the Certificate Authority (CA)
that is allowed to issue certificates for the domain.

Web Site

A web server can serve many web sites.
Each web site is configured as virtual host on the server:

<VirtualHost *:80>
    DocumentRoot /var/www/
    <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log vhost_combined

When the configuration file of the site is available, the site needs to be enabled:

SSL/TLS Certificate

Install certbot to get a SSL/TLS certificate from Let's Encrypt:
apt-get install certbot python-certbot-apache

Create and install the certificate:
certbot --apache -d -d


Install additional modules:
apt-get install php-gd php-mbstring

External Links

CONTENT.html 2021-05-19 2.6 KB