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
AHMED ELKHAYYAT
https://elkhayyat.me

I am a very keen individual that enjoys developing Python Programming Language. I have always loved computers and technology, ever since childhood. A team player who loves to work with other people on innovative projects and to take on challenges as an opportunity to grow as an individual in both a professional and personal capacity.

Leave a Reply

Select your currency
USD United States (US) dollar