mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Currently users cannot use the check_mk apache plugin to monitor the apache instance that is running librenms. Excluding server-status from the rewrite rules allows users to use mod_status.
19 lines
570 B
ApacheConf
19 lines
570 B
ApacheConf
# DO NOT CHANGE THIS FILE
|
|
# If you need to change this file, you are doing something wrong.
|
|
|
|
Options FollowSymlinks Multiviews
|
|
|
|
RewriteEngine on
|
|
RewriteBase /
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
|
|
RewriteRule ^api/v0(.*)$ api_v0.php/$1 [L]
|
|
RewriteCond %{REQUEST_URI} !=/server-status
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
|
|
RewriteRule ^(.*)$ index.php/$1/
|
|
|
|
AcceptPathInfo On
|