Changing the url to access the web interface

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
eric_draven
Posts: 7
Joined: Wed May 29, 2013 8:26 am

Changing the url to access the web interface

Post by eric_draven »

Hi guys,
I have already checked the documentation but I didn't understand what I have to do..

I need to change url to access the nagios web interface:

from: http://localhost/nagios3
to: http//localhost/test

Could you tell me how to do it? (which files I should modify and what I should write)

Thank you
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Changing the url to access the web interface

Post by abrist »

Edit:

Code: Select all

/etc/httpd/conf.d/nagios.conf
Change the lines:

Code: Select all

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
And:

Code: Select all

Alias /nagios "/usr/local/nagios/share"
To:

Code: Select all

ScriptAlias /test/cgi-bin "/usr/local/nagios/sbin"
And:

Code: Select all

Alias /test "/usr/local/nagios/share"
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Changing the url to access the web interface

Post by tmcdonald »

If you're using Debian/Ubuntu or one of its derivatives, you might want to look under

Code: Select all

/etc/apache2/conf.d
Former Nagios employee
Locked