With CentOS 8, the environment variables of your Apache server are handled by systemd.
See the content of the httpd service:
To customize the behaviour, run "systemctl edit httpd" to create an override unit.
[...] enter the following:
So you have to create an ...
One possibility is to put the variables in file /etc/environment in the form
MY_ENV_VAR99="value with spaces"
and these will be read and exported by pam_env on login. To have apache read the same file use
in the unit file. Note, the use of this keyword is not liked by the systemd designers so ...
I've added the first rule block after noticing that the solution
suggested in the link had a bug -- that is, URL https://mysite.com/
returned a File not Found. Now it works.
I think it is not really a bug. The code you extracted from here is meant to be used in a .htaccess file, not in a VirtualHost directive. It turns out that RewriteRule does not work ...
The error you get is possibly because the index.html file is inside a root owned directory, try running LibreOffice with superuser privileges, if that doesn't work, try to edit the file with nano or vim, if its successful then the problem lies with LibreOffice.
Atom is a very nice and kind lightweight IDE, it supports syntax highlighting for html, if you don'...
libapache2-mod-spamhaus, which is the Apache DNSBL module that blocks listed IP addresses, is available only in Ubuntu Xenial (16.04 LTS). This is why apt is not able to find and install the package in Ubuntu Bionic (18.04 LTS). It is not present in the repository.
You can still download the package or the source at the package's page on the Ubuntu's website ...