Modify URL?
Posted: Mon May 20, 2019 7:16 pm
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
Thanks
Drew
Support for Nagios products and services
https://support.nagios.com/forum/
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 restartGreat! Did you have any other questions or may we close this thread?That did it! Thanks!