Zabbix出现 404Not FoundThe requested URL /zabbix was not found on this server.

目录

一、问题:

二、原因:

三、解决方法:


一、问题:

Not Found

The requested URL /zabbix was not found on this server.

二、原因:

未找到

在此服务器上找不到请求的 URL /zabbix。

/etc/httpd/conf.d 目录下缺少 zabbix.conf (zabbix的配置)文件。

三、解决方法:

方法一:

(1)复制zabbix.conf到 /etc/httpd/conf.d/ 下

复制代码
cp /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf /etc/httpd/conf.d/

(2)修改时间区域(去除前面的; 末尾修改为上海的时区)

#php_value[date.timezone] = Asia/Shanghai

复制代码
vi  /etc/httpd/conf.d/zabbix.conf

修改前:

修改后:

(3)重新启动服务

复制代码
systemctl restart httpd

方法二:

(1)创建zabbix.conf文件

复制代码
touch zabbix.conf

(2)在文件中添加如下内容

复制代码
#
# Zabbix monitoring system php web frontend
#

Alias /zabbix /usr/share/zabbix

<Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    <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 date.timezone Asia/Shanghai
    </IfModule>
</Directory>

<Directory "/usr/share/zabbix/conf">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

<Directory "/usr/share/zabbix/api">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

<Directory "/usr/share/zabbix/include">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

<Directory "/usr/share/zabbix/include/classes">
    Order deny,allow
    Deny from all
    <files *.php>
        Order deny,allow
        Deny from all
    </files>
</Directory>

(3)重新启动服务

复制代码
systemctl restart httpd
相关推荐
小晶晶京京2 天前
day54-Zabbix(第三部分)
linux·运维·服务器·zabbix
云游10 天前
Zabbix7.4.8(三):通过Zabbix agent 2监控Docker相关指标
docker·容器·zabbix
网络坤子-蔡先生10 天前
CentOS 8 部署 Zabbix 7.0 LTS 完整流程(PostgreSQL)及不同系统agent安装
postgresql·centos·zabbix
从零开始的ops生活10 天前
【Day 68】Zabbix-自动监控-Web检测-分布式监控
linux·网络·zabbix
云游11 天前
Zabbix7.4.8(一):通过Zabbix agent 2监控postgresql相关指标
运维·postgresql·zabbix
纳切威12 天前
CentOS 10服务器版 部署Zabbix7.2 server端
linux·运维·centos·zabbix
纳切威13 天前
CentOS 9部署Zabbix7.0 Agent2端
linux·运维·centos·zabbix
handsome1234518 天前
CentOS 8.5.2.111部署Zabbix6.0 手把手、保姆级
运维·mysql·centos·zabbix·监控·centos8·zabbix6·linux源
李白你好25 天前
这是一个用于扫描Zabbix系统中常见漏洞的工具,提供了图形界面(GUI)和命令行(CLI)两种使用方式。
网络·安全·zabbix
纳切威1 个月前
CentOS 7部署Zabbix5.0
linux·运维·centos·zabbix