Page 1 of 1

Nagios XI's BasePath in nginx redirection

Posted: Thu May 02, 2019 5:33 am
by axvers
We need to hide Nagios XI and other apps behind a single portal with nginx running.

And I can not find something like BasePath settings on Nagios XI to help me set up a proxy_pass config on that nginx.

e.g.

Code: Select all

location /shadow/nagiosxi {
        auth_basic "Restricted";
        auth_basic_user_file /etc/nginx/conf.d/.nxi.htpasswd;
        proxy_pass http://<nagiosxi_ip>:80/;
    }
1. Do you provide basepath settings that we can directly redirect to the inner Nagios XI?
2. Or, could you provide some advice to achieve the hiding?

Re: Nagios XI's BasePath in nginx redirection

Posted: Thu May 02, 2019 1:02 pm
by npolovenko
@axvers, All apache configs that are serving Nagios XI are located in:
/etc/httpd/conf.d/
Particularly, the nagiosxi config is called:
nagiosxi.conf
I have never worked on integrating Nagios and nginx and we don't really have any tutorial in place.

I found a couple third-party tutorials on Nagios Core and NGINX that may give you some insight:
http://johan.cc/2012/02/06/nagios-nginx/
https://www.linuxhelp.com/how-to-instal ... -on-centos

Re: Nagios XI's BasePath in nginx redirection

Posted: Fri May 03, 2019 10:18 am
by axvers
Got it.

please lock this, thanks!