Alerts don't show in the UI if not using the first server name specified in nginx

I noticed recently, because i’m lazy, that when i browse to librenms/ instead of that the alert notifications and history fail to load. I can change the behavior by modifying the server name in nginx. For example, if i change server name to librenms it will load alert notifications when going to librenms/ but not to If i change the server name to the alert notifications load for but not for librenms/.

Any ideas on how i can make it work with either URL? From what i can tell the rest of the app works correctly but i haven’t invested a ton of time verifying that.


Component Version
LibreNMS 22.1.0-77-g681c994
DB Schema 2021_12_02_113537_ports_stp_designated_cost_change_to_int (234)
PHP 7.4.18
Python 3.6.8
MySQL 10.5.9-MariaDB
RRDTool 1.4.8
SNMP 5.7.2


[OK] Composer Version: 2.2.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

What is lnms config:get base_url returning? If it’s a full domain, then try lnms config:set base_url /

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.