Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to turn on Https by Zabbix5.2

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to open Zabbix5.2 Https, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!

Text

Environment introduction

System version: CentOS 8.2

PHP version: 7.4

Mariadb version: 10.3

Web service: Apache

Install the plug-in for ssl

Dnf-y install mod_ssl

Create a directory where the key is stored

Mkdir-p / kasar/ssl chmod 700 / kasar/ssl

Create certificates and keys

Openssl req-x509-nodes-days 365-newkey rsa:2048-keyout / kasar/ssl/kasar.key-out / kasar/ssl/kasar.crt

Create a certificate

Edit SSL profile

Edit the ssl.conf configuration file and modify the following places

Vi / etc/httpd/conf.d/ssl.conf

Modify the root directory

Adjust certificate and key path

Restart the service

Systemctl restart httpd

Final effect

Final effect

Forced jump

Now that https is enabled, forced jump is also a required option

There are two things you need to modify:

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

Change this to All

Create a .htaccess file to achieve the jump, add the following content to the file, and then restart the http service, you can achieve the jump, not to mention the details, you can consult the official apache documentation, or self-made du Niang.

Vi / usr/share/zabbix/.htaccess RewriteEngine On RewriteCond% {HTTPS} off RewriteRule (. *) https://%{HTTP_HOST}%{REQUEST_URI}

Actual production effect

The above is all the contents of the article "how to start Https with Zabbix5.2". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report