diff --git a/doc/INSTALL.md b/doc/INSTALL.md index 98ab7eabcb..e380d1193e 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -90,12 +90,15 @@ Next, add the following to `/etc/apache2/sites-available/librenms.conf`: ServerName librenms.example.com CustomLog /opt/librenms/logs/access_log combined ErrorLog /opt/librenms/logs/error_log + AllowEncodedSlashes On AllowOverride All Options FollowSymLinks MultiViews +If you are running Apache 2.2.18 or higher then change AllowEncodedSlashes to NoDecode + If you have Apache 2.3 or newer then please add the following line before `AllowOverride All`: Require all granted diff --git a/doc/INSTALL_RHEL.md b/doc/INSTALL_RHEL.md index ff4b3db08a..9e3ffeed5c 100644 --- a/doc/INSTALL_RHEL.md +++ b/doc/INSTALL_RHEL.md @@ -101,12 +101,15 @@ Next, add the following to `/etc/httpd/conf.d/librenms.conf` ServerName librenms.example.com CustomLog /opt/librenms/logs/access_log combined ErrorLog /opt/librenms/logs/error_log + AllowEncodedSlashes On AllowOverride All Options FollowSymLinks MultiViews +If you are running Apache 2.2.18 or higher then change AllowEncodedSlashes to NoDecode + Don't forget to restart Apache to make this active: service httpd restart diff --git a/includes/api_functions.inc.php b/includes/api_functions.inc.php index db524939b8..3e0695a3cf 100644 --- a/includes/api_functions.inc.php +++ b/includes/api_functions.inc.php @@ -215,7 +215,7 @@ function get_graph_by_port() $router = $app->router()->getCurrentRoute()->getParams(); $device_id = $router['id']; $vars = array(); - $vars['port'] = $router['port']; + $vars['port'] = urldecode($router['port']); $vars['type'] = $router['type'] ?: 'port_bits'; if(!empty($router['from'])) {