Hi all,
I've been battling all day to get Nagios Core running on NGinx, I'm as far as having a menu bar down the left and seeing the home page, but the following is wrong with URL's within the menu (an example) -
http://domain.com/cgi-bin/tac.cgi is offered as http://domain.com/nagios/cgi-bin/tac.cgi
This is the server block from NGinx
server {
listen ************:80;
server_name ***********;
location / {
root /usr/local/nagios/share;
index index.php;
}
location ~ ^/(.*\.php)$ {
root /usr/local/nagios/share/;
rewrite ^/(.*) /$1 break;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/local/nagios/share$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
location ~ ^/(.*\.cgi)$ {
alias /usr/local/nagios/sbin/;
rewrite ^/(.*) /$1.cgi break;
include /etc/nginx/fastcgi_params;
fastcgi_param AUTH_USER $remote_user;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param SCRIPT_FILENAME /usr/local/nagios/sbin$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
I've tried many different variations from many different websites, but nothing's worked so far.
Tearing my hair out, hoping someone can help