Blame SOURCES/zabbix-nginx.conf

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