Configuring Cloudflare’s CF-Connecting-IP Header

Since when Cloudflare proxy is enabled, requests to the web server will come from Cloudflare servers, and not directly from users, you need to configure the CF-Connecting-IP header, which transmits the user’s real IP address. After configuration, it will be displayed as before in logs and requests.

Continue reading “Configuring Cloudflare’s CF-Connecting-IP Header”

Configuring OCSP Stapling

OCSP is a protocol for checking the validity of certificates, that is, to make sure that they have not been revoked and whether they were actually issued. Enabling OCSP Stapling on the web server side allows you to increase the speed of site opening, since the request to the certification authority is made not by the browser, but by the web server.

Continue reading “Configuring OCSP Stapling”

Solution Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration

Once I transferred one site from one server to another Ubuntu server and after installing Apache2 I noticed the following error in the logs:

Continue reading “Solution Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration”

Solution AH00558: apache2: Could not reliably determine the server’s fully qualified domain name

Once after installing and configuring Apache2 on Ubuntu Server 20.04, I noticed the following error in the /var/log/apache2/error.log logs:

Continue reading “Solution AH00558: apache2: Could not reliably determine the server’s fully qualified domain name”

Solution Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

Once I wanted to see which MPM module is being used and executed the command:

Continue reading “Solution Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot”