freke l33t
Joined: 23 Jan 2003 Posts: 976 Location: Somewhere in Denmark
|
Posted: Thu Jun 09, 2022 4:44 pm Post subject: net-analyzer/munin installing 'conflicting' .includes? |
|
|
Going through my Apache2 configuration I noticed two munin-includes in /etc/apache2/vhosts.d
Code: | lamp /etc/apache2/vhosts.d # ls -la
total 44K
drwxr-xr-x 2 root root 4.0K May 20 22:46 .
drwxr-xr-x 4 root root 4.0K Apr 28 21:50 ..
-rw-r--r-- 1 root root 19K Feb 17 14:08 00_default_ssl_vhost.conf
-rw-r--r-- 1 root root 1.6K Oct 9 2019 00_default_vhost.conf
-rw-r--r-- 1 root root 2.8K May 6 2018 default_vhost.include
-rw-r--r-- 1 root root 577 Apr 29 01:08 munin-2.4.include
-rw-r--r-- 1 root root 604 Apr 29 01:08 munin.include
lamp /etc/apache2/vhosts.d # equery b munin.include
* Searching for munin.include ...
net-analyzer/munin-2.0.67-r7 (/etc/apache2/vhosts.d/munin.include)
lamp /etc/apache2/vhosts.d # equery b munin-2.4.include
* Searching for munin-2.4.include ...
net-analyzer/munin-2.0.67-r7 (/etc/apache2/vhosts.d/munin-2.4.include)
|
They're both setting access on the same directories - shouldn't they just be combined into one? Isn't it simply the one that runs last that prevails?
Code: | lamp /etc/apache2/vhosts.d # sdiff munin-2.4.include munin.include
# -*- apache -*- # -*- apache -*-
ScriptAlias /munin-cgi/ /usr/libexec/munin/cgi/ ScriptAlias /munin-cgi/ /usr/libexec/munin/cgi/
Alias /munin/static /etc/munin/static Alias /munin/static /etc/munin/static
<IfDefine MUNIN_HTML_CGI> <IfDefine MUNIN_HTML_CGI>
RewriteEngine on RewriteEngine on
RewriteCond %{REQUEST_URI} (/|\.html)$ RewriteCond %{REQUEST_URI} (/|\.html)$
RewriteCond %{REQUEST_URI} !/static RewriteCond %{REQUEST_URI} !/static
RewriteRule ^/munin/(.*) /munin-cgi/munin-cgi-html/$1 [PT,L] RewriteRule ^/munin/(.*) /munin-cgi/munin-cgi-html/$1 [PT,L]
</IfDefine> </IfDefine>
<Directory /usr/libexec/munin/cgi/> <Directory /usr/libexec/munin/cgi/>
Options +ExecCGI Options +ExecCGI
Require all granted |
> Order allow,deny
> Allow from all
<IfModule mod_fcgid.c> <IfModule mod_fcgid.c>
SetHandler fcgid-script SetHandler fcgid-script
</IfModule> </IfModule>
<IfModule !mod_fcgid.c> <IfModule !mod_fcgid.c>
SetHandler cgi-script SetHandler cgi-script
</IfModule> </IfModule>
</Directory> </Directory>
<Directory /etc/munin/static> <Directory /etc/munin/static>
Require all granted | Order allow,deny
> Allow from all
</Directory> </Directory> |
|
|