Modify URL?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DrewDennis
Posts: 14
Joined: Wed Jun 06, 2018 9:59 pm

Modify URL?

Post by DrewDennis »

Hey gang - how do I modify the landing URL for NagiosXI? Currently it is http://servername/NagiosXI. How do I change it to be just Http://servername ?

Thanks

Drew
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Modify URL?

Post by npolovenko »

@DrewDennis, I haven't fully tested this out but the solution seems to be working. Open the following Apache configuration:

Code: Select all

/etc/httpd/conf.d/nagiosxi.conf
Find this section at the bottom:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
And add the following line:

Code: Select all

RedirectMatch ^/$ /nagiosxi/
So the whole block would look like this:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
RedirectMatch ^/$ /nagiosxi/
</IfModule>
Save the file and restart apache with:

Code: Select all

service httpd restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
DrewDennis
Posts: 14
Joined: Wed Jun 06, 2018 9:59 pm

Re: Modify URL?

Post by DrewDennis »

That did it! Thanks!

D
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Modify URL?

Post by benjaminsmith »

Hello Drew,
That did it! Thanks!
Great! Did you have any other questions or may we close this thread?

Thanks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked