Install Letsencrypt SSL certificate on Zabbix server running over apache CentOS 8

1- Install certbot.

yum install -y certbot python3-certbot mod_ssl

2- Add Virtualenv using for port 80 in apache config file.

/etc/httpd/conf.d/zabbix.conf

add the following:

<VirtualHost *:80>
    ServerName yourDomainName.com
    DocumentRoot /usr/share/zabbix
    ServerAlias www.yourDomainName.com
    ErrorLog /var/www/error.log
    CustomLog /var/www/requests.log combined
</VirtualHost>

3- Stop apache server.

service httpd stop

4- Run certbot command.

certbot --apache -d yourDomainName.com

5- Start apache server.

service httpd start

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Select your currency
EGP Egyptian pound