mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apache will replace `Options` from the server config with new ones provided in `.htaccess` unless all of the parameters start with either `+` or `-`. This effectively disables `+ExecCGI` and others that might be needed for proper operation.
35 lines
1.1 KiB
ApacheConf
35 lines
1.1 KiB
ApacheConf
# DO NOT CHANGE THIS FILE
|
|
# If you need to change this file, you are doing something wrong.
|
|
|
|
Options +FollowSymlinks +Multiviews
|
|
|
|
AddType image/svg+xml .svg
|
|
<IfModule mod_filter.c>
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/css
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
AddOutputFilterByType DEFLATE text/javascript
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
AddOutputFilterByType DEFLATE image/svg+xml
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
AddOutputFilterByType DEFLATE text/xsd
|
|
AddOutputFilterByType DEFLATE text/xsl
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
AddOutputFilterByType DEFLATE image/x-icon
|
|
</IfModule>
|
|
</IfModule>
|
|
|
|
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
|
|
|
|
AcceptPathInfo On
|