2025-01-13 11:24:39 +01:00
|
|
|
LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so
|
|
|
|
LoadModule socache_shmcb_module /usr/lib64/httpd/modules/mod_socache_shmcb.so
|
2018-02-18 21:45:33 +01:00
|
|
|
|
2020-04-26 18:45:42 +02:00
|
|
|
Listen 8443
|
2018-02-18 21:45:33 +01:00
|
|
|
|
2025-01-14 06:48:23 +01:00
|
|
|
SSLRandomSeed startup builtin
|
|
|
|
SSLRandomSeed startup file:/dev/urandom 512
|
|
|
|
SSLRandomSeed connect builtin
|
|
|
|
SSLRandomSeed connect file:/dev/urandom 512
|
2018-02-18 21:45:33 +01:00
|
|
|
|
2025-01-14 06:48:23 +01:00
|
|
|
AddType application/x-x509-ca-cert .crt
|
2018-02-18 21:45:33 +01:00
|
|
|
|
2025-01-14 06:48:23 +01:00
|
|
|
SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
|
|
|
|
SSLSessionCacheTimeout 300
|
2018-09-28 12:44:57 +02:00
|
|
|
|
2025-01-14 06:48:23 +01:00
|
|
|
<VirtualHost *:8443>
|
2025-01-13 11:24:39 +01:00
|
|
|
# Enable/Disable SSL for this virtual host.
|
|
|
|
SSLEngine on
|
2021-06-09 01:48:27 +02:00
|
|
|
|
2025-01-13 11:24:39 +01:00
|
|
|
# intermediate configuration
|
|
|
|
SSLProtocol -all +TLSv1.2 +TLSv1.3
|
|
|
|
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
|
|
|
|
SSLHonorCipherOrder off
|
|
|
|
SSLSessionTickets off
|
2018-09-28 12:44:57 +02:00
|
|
|
|
2025-01-13 11:24:39 +01:00
|
|
|
SSLCertificateFile /etc/ssl/apache2/ssl.crt
|
|
|
|
SSLCertificateKeyFile /etc/ssl/apache2/ssl.key
|
|
|
|
# SSLCACertificatePath /etc/ssl/apache2/chain/
|
2022-08-15 16:35:34 +02:00
|
|
|
|
2025-01-13 11:24:39 +01:00
|
|
|
# enable HTTP/2, if available
|
|
|
|
Protocols h2 http/1.1
|
|
|
|
|
|
|
|
# HTTP Strict Transport Security (mod_headers is required) (63072000 seconds)
|
|
|
|
Header always set Strict-Transport-Security "max-age=63072000"
|
|
|
|
|
|
|
|
<LocationMatch "/(ping|status)">
|
2025-01-14 06:48:23 +01:00
|
|
|
Require all granted
|
2025-01-13 11:24:39 +01:00
|
|
|
|
|
|
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
|
|
|
</LocationMatch>
|
|
|
|
|
|
|
|
<Directory "/usr/share/zabbix">
|
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
Require all granted
|
|
|
|
|
2025-01-14 06:48:23 +01:00
|
|
|
<FilesMatch \.php$>
|
2022-08-15 16:35:34 +02:00
|
|
|
SetHandler "proxy:unix:/tmp/php-fpm.sock|fcgi://localhost"
|
2025-01-13 11:24:39 +01:00
|
|
|
</FilesMatch>
|
|
|
|
|
|
|
|
<filesMatch "\.(ico)$">
|
|
|
|
ExpiresActive On
|
|
|
|
ExpiresDefault "access plus 1 year"
|
|
|
|
Header append Cache-Control "public"
|
|
|
|
</filesMatch>
|
|
|
|
|
|
|
|
<filesMatch "\.(js|css|png|jpg|jpeg|gif|xml|txt)$">
|
|
|
|
ExpiresActive On
|
|
|
|
ExpiresDefault "access plus 14 day"
|
|
|
|
Header append Cache-Control "public"
|
|
|
|
</filesMatch>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/usr/share/zabbix/conf">
|
|
|
|
Require all denied
|
|
|
|
<files *.php>
|
2025-01-14 06:48:23 +01:00
|
|
|
Require all denied
|
2025-01-13 11:24:39 +01:00
|
|
|
</files>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/usr/share/zabbix/app">
|
|
|
|
Require all denied
|
|
|
|
<files *.php>
|
2025-01-14 06:48:23 +01:00
|
|
|
Require all denied
|
2025-01-13 11:24:39 +01:00
|
|
|
</files>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/usr/share/zabbix/include">
|
|
|
|
Require all denied
|
|
|
|
<files *.php>
|
2025-01-14 06:48:23 +01:00
|
|
|
Require all denied
|
2025-01-13 11:24:39 +01:00
|
|
|
</files>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/usr/share/zabbix/local">
|
|
|
|
Require all denied
|
|
|
|
<files *.php>
|
2025-01-14 06:48:23 +01:00
|
|
|
Require all denied
|
2025-01-13 11:24:39 +01:00
|
|
|
</files>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/usr/share/zabbix/locale">
|
|
|
|
Require all denied
|
|
|
|
<files *.php>
|
2025-01-14 06:48:23 +01:00
|
|
|
Require all denied
|
2025-01-13 11:24:39 +01:00
|
|
|
</files>
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/usr/share/zabbix/vendor">
|
|
|
|
Require all denied
|
|
|
|
<files *.php>
|
2025-01-14 06:48:23 +01:00
|
|
|
Require all denied
|
2025-01-13 11:24:39 +01:00
|
|
|
</files>
|
|
|
|
</Directory>
|
|
|
|
</VirtualHost>
|