Configuración del servidor Web

Apache

NGINX

location /nagios {
alias /usr/local/nagios/share;
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_keep_conn on;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
}
}
location /nagios/cgi-bin/ {
root /usr/lib/;
include /etc/nginx/fastcgi_params;
fastcgi_param AUTH_USER nagiosadmin;
fastcgi_param REMOTE_USER nagiosadmin;
if ($uri ~ "\.cgi$"){
fastcgi_pass unix:/run/fcgiwrap.nagios.socket-1;
}
}