Ad Widget

Collapse

Zabbix 5.0 whith NGINX - Local Network

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • redmi
    Junior Member
    • Mar 2021
    • 4

    #1

    Zabbix 5.0 whith NGINX - Local Network

    I just finished installing Zabbix 5.0 on my local centOS 8 server
    When you log into the server, the installation does not start
    This is my zabbif.conf on nginx
    Thanks for the help



    Code:
    server {
    listen 80;
    
    server_name zabbix.example.com;
    
    root /usr/share/zabbix;
    
    index index.php index.html index.htm;
    
    location = /favicon.ico {
    log_not_found off;
    }
    
    location / {
    try_files $uri $uri/ =404;
    }
    
    location /assets {
    access_log off;
    expires 10d;
    }
    
    location ~ /\.ht {
    deny all;
    }
    
    location ~ /(api\/|conf[^\.]|include|locale) {
    deny all;
    return 404;
    }
    
    location ~ [^/]\.php(/|$) {
    fastcgi_pass unix:/run/php-fpm/zabbix.sock;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_index index.php;
    
    fastcgi_param DOCUMENT_ROOT /usr/share/zabbix;
    fastcgi_param SCRIPT_FILENAME /usr/share/zabbix$fastcgi_script_name;
    fastcgi_param PATH_TRANSLATED /usr/share/zabbix$fastcgi_script_name;
    
    include fastcgi_params;
    fastcgi_param QUERY_STRING $query_string;
    fastcgi_param REQUEST_METHOD $request_method;
    fastcgi_param CONTENT_TYPE $content_type;
    fastcgi_param CONTENT_LENGTH $content_length;
    
    fastcgi_intercept_errors on;
    fastcgi_ignore_client_abort off;
    fastcgi_connect_timeout 60;
    fastcgi_send_timeout 180;
    fastcgi_read_timeout 180;
    fastcgi_buffer_size 128k;
    fastcgi_buffers 4 256k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;
    }
    }
  • redmi
    Junior Member
    • Mar 2021
    • 4

    #2
    I installed zabbix on a new server following the guide and I solved it
    Thank you all

    Comment

    Working...