When I click the “update” button on the page with any graph, an extra “base_url” is added to the url, like http://librenms/lnms/**lnms**/graph/…
I’am using directive Alias /lnms/ "/opt/librenms/html/"
in Apache config.
$config['base_url'] = '/lnms/';
====================================
Component | Version
--------- | -------
LibreNMS | 1.43-134-g68484d305
DB Schema | 268
PHP | 7.0.30-0+deb9u1
MySQL | 10.1.26-MariaDB-0+deb9u1
RRDTool | 1.6.0
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
These changes do not solve the problem:
librenms@librenms:~$ git diff app/Providers/AppServiceProvider.php
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index b7c2def78..77f2c6e2e 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -33,7 +33,7 @@ class AppServiceProvider extends ServiceProvider
Log::useFiles(Config::get('log_file', base_path('logs/librenms.log')), 'error');
// Set root url according to user's settings
- \URL::forceRootUrl(\Config::get('app.url'));
+ \URL::forceRootUrl(\Config::get('base_url'));
// Blade directives (Yucky because of < L5.5)
Blade::directive('config', function ($key) {
librenms@librenms:~$ git diff html/.htaccess
diff --git a/html/.htaccess b/html/.htaccess
index 608a095d8..9934aba4d 100644
--- a/html/.htaccess
+++ b/html/.htaccess
@@ -20,7 +20,7 @@ AddType image/svg+xml .svg
</IfModule>
RewriteEngine on
-RewriteBase /
+RewriteBase /lnms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)