As I attempt to browse to www.domain.com/nms the url changes to www.domain.com/login when it should be www.domain.com/nms/login. Browsing by IP works as in I can login OK, but some images are broken and going to Settings then attempts the domain.com URL, and as I do not have a cookie for that, goes straight to domain.com/login and can’t progress.
librenms@host:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.44-24-g2e34c73
DB Schema | 269
PHP | 7.0.32-0ubuntu0.16.04.1
MySQL | 10.0.36-MariaDB-0ubuntu0.16.04.1
RRDTool | 1.5.5
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
I have baseurl set in config.php as “/nms/”, the problem also persists if baseurl is not set and set to “https://www.domain.com/nms/”, and here is my nginx reverse proxy config:
location /nms/ {
proxy_pass http://192.168.0.104/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
include conf.d/basicauth.conf;
I have run ./daily.php and ./validate.php, no issues. LibreNMS is running on nginx too. This issue has been going on for some months so sadly I can’t tell you when I first noticed it or which version.