Apache2 Proxy vor checkmk Rocky
Version vom 10. Juni 2026, 11:11 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Install mod_ssl= mod_ssl rüstet den System-Apache mit TLS-Unterstützung nach und legt einen Default-SSL-vhost an. *dnf install mod_ssl =Zertifikat eintragen…“)
Install mod_ssl
mod_ssl rüstet den System-Apache mit TLS-Unterstützung nach und legt einen Default-SSL-vhost an.
- dnf install mod_ssl
Zertifikat eintragen
Der Default-SSL-vhost wird auf das Lab-Zertifikat umgebogen.
- /etc/httpd/conf.d/ssl.conf
- SSLCertificateFile /etc/httpd/own.crt
- SSLCertificateKeyFile /etc/httpd/own.key
HTTP auf HTTPS umleiten
Alle unverschlüsselten Anfragen werden dauerhaft auf HTTPS umgeleitet.
- /etc/httpd/conf.d/redirect.conf
<VirtualHost *:80>
ServerName checkmk.it213.int Redirect permanent / https://checkmk.it213.int/
</VirtualHost>
Firewall
HTTPS wird in der Default-Zone dauerhaft freigegeben.
- firewall-cmd --permanent --add-service=https
- firewall-cmd --reload
Test & Neustart
Konfiguration prüfen, dann Apache neu starten.
- apachectl configtest
- systemctl restart httpd
Url
Die Web-UI ist nur noch per HTTPS erreichbar.