zabbix cancels the suffix and uses ip to directly access

Foreword: I searched for this procedure for a long time on the Internet, and a lot of them were charged. I was also drunk. Is this a little bit embarrassing to charge? Fortunately, the hard work paid off, so I found it for me. My requirement is to cancel the zabbix suffix of http://ip/zabbix and change it to access ip to directly enter the homepage. It is very simple, just modify the configuration file.

Steps:

1. Modify httpd.conf configuration
vi /etc/httpd/conf/httpd.conf
2. Find the DocumentRoot line, comment it out, and add a new line pointing to zabbix.
#DocumentRoot "/var/www/html"
DocumentRoot "/usr/share/zabbix"
3. Restart the service
systemctl restart httpd
systemctl restart zabbix-server

Guess you like

Origin blog.csdn.net/qq_43316775/article/details/114027309