首页 » Linux » Configure » Zabbix-Apache配置ssl证书

Zabbix-Apache配置ssl证书

 
zabbix.conf
#
# Zabbix monitoring system php web frontend
#
<VirtualHost zabbix.ituser.cn:443>

ServerName zabbix.ituser.cn:443
ServerAlias zabbix.ituser.cn:443
ErrorLog logs/zabbix_ssl_error_log
TransferLog logs/zabbix_ssl_access_log
#Alias /zabbix /var/www/html/zabbix
DocumentRoot /var/www/html/zabbix/
SSLEngine On
SSLCertificateFile /var/www/html/zabbix/2_zabbix.ituser.cn.crt
SSLCertificateKeyFile /var/www/html/zabbix/3_zabbix.ituser.cn.key
SSLCertificateChainFile /var/www/html/zabbix/1_root_bundle.crt

<Directory "/var/www/html/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Require all granted

    <IfModule mod_php5.c>
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        php_value max_input_vars 10000
        php_value always_populate_raw_post_data -1
        php_value date.timezone Asia/Shanghai
    </IfModule>
</Directory>

<Directory "/var/www/html/zabbix/conf">
    Require all denied
</Directory>

<Directory "/var/www/html/zabbix/app">
    Require all denied
</Directory>

<Directory "/var/www/html/zabbix/include">
    Require all denied
</Directory>

<Directory "/var/www/html/zabbix/local">
    Require all denied
</Directory>
</VirtualHost>

 

本文隐藏内容 登陆 后才可以浏览

原文链接:Zabbix-Apache配置ssl证书,转载请注明来源!

2