Page 1 of 1

Nagios in a subdirectory

Posted: Sun Apr 05, 2015 4:47 am
by priwac
Hello,

I have installed Nagios on Ubuntu 14.04 server which running nging. Installation process went fine and nagios server is started and running already. The only problem I got is that I cannot set up properly the nginx configuration file, in order to access nagios through my web browser.

I would like to have nagios in a subdirectory, domain.com/stats/nagios. The directories that Nagios is being installed on the server are /etc/nagios and /usr/local/share/nagios.

Can you please help me with the nginx rules?

Thank you.

Re: Nagios in a subdirectory

Posted: Mon Apr 06, 2015 10:32 am
by jdalrymple
Have you got a cgi wrapper module configured for nginx? If so which one? Here is one individuals howto:

http://johan.cc/2012/02/06/nagios-nginx/

If you don't already have a cgi wrapper you may be best served using default Apache on a different port and using nginx to reverse proxy it.