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
Modify URL?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Modify URL?
@DrewDennis, I haven't fully tested this out but the solution seems to be working. Open the following Apache configuration:
Find this section at the bottom:
And add the following line:
So the whole block would look like this:
Save the file and restart apache with:
Code: Select all
/etc/httpd/conf.d/nagiosxi.confCode: 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>Code: Select all
RedirectMatch ^/$ /nagiosxi/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>
Code: Select all
service httpd restartAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Modify URL?
Hello Drew,
Thanks.
Great! Did you have any other questions or may we close this thread?That did it! Thanks!
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!