Page 1 of 1
NLS Base URL
Posted: Wed Feb 13, 2019 12:39 pm
by ssoliveira
Good afternoon,
Which files do I need to change; to modify the standard base url of nls?
I want the application to run in /
From
http://10.144.160.28/nagioslogserver/
To
http://10.144.160.28/
Re: NLS Base URL
Posted: Wed Feb 13, 2019 4:13 pm
by cdienger
I'm not sure it's entirely possible since some of the files may be encrypted and I wouldn't suggest doing it if is since it can lead to unintended consequences, but when you go to
http://10.144.160.28/ it will load /var/www/html/index.php which redirects to
http://10.144.160.28/nagioslogserver/ and Apache directs this request to /var/www/html/nagioslogserver/www/index.php. This index.php is coded to point to files in /var/www/html/nagioslogserver/ and uses relative paths to find them. Making a change like this would require replacing the intial index.php and then updating the code to find the files in the new path.