Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449738 - net-analyzer/icinga-1.8.2 fixed 99_icinga.conf
Summary: net-analyzer/icinga-1.8.2 fixed 99_icinga.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-01-02 09:44 UTC by Kfir Ozer
Modified: 2013-02-07 15:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fixed 99_icinga.conf (99_icinga.conf,465 bytes, text/plain)
2013-01-02 09:44 UTC, Kfir Ozer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kfir Ozer 2013-01-02 09:44:09 UTC
fixed 99_icinga.conf file
removed order allow,deny allow from all - there are user validates 
removed AllowOverride - there are no .htacess files

now the files works with apache 2.2 and apache 2.4



Reproducible: Always
Comment 1 Kfir Ozer 2013-01-02 09:44:45 UTC
Created attachment 334024 [details]
fixed 99_icinga.conf

works with apache 2.2 and apache 2.4
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-02 10:59:39 UTC
Comment on attachment 334024 [details]
fixed 99_icinga.conf

--- files/icinga-apache.conf    2011-12-03 20:05:29.000000000 +0100
+++ -   2013-01-02 11:59:27.889906088 +0100
@@ -1,10 +1,7 @@
 <IfDefine ICINGA>
        ScriptAlias /icinga/cgi-bin/ /usr/lib/icinga/cgi-bin/
        <Directory "/usr/lib/icinga/cgi-bin/">
-               AllowOverride AuthConfig
                Options ExecCGI
-               Order allow,deny
-               Allow from all
                AuthName "Icinga Access"
                AuthType Basic
                AuthUserFile /etc/icinga/htpasswd.users
@@ -12,9 +9,6 @@
        </Directory>
        Alias /icinga /usr/share/icinga/htdocs
        <Directory "/usr/share/icinga/htdocs">
-               AllowOverride AuthConfig
-               Order allow,deny
-               Allow from all
                AuthName "Icinga Access"
                AuthType Basic
                AuthUserFile /etc/icinga/htpasswd.users
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-01-03 01:01:42 UTC
should have commented, fixed in tree :D
Comment 4 tazinblack 2013-02-07 15:20:08 UTC
sorry but this is not working for me as I always get a 
"client denied by server configuration: /usr/share/icinga/htdocs"

It only working with "Order deny,allow".

I'm using apache 2.2.23
Comment 5 tazinblack 2013-02-07 15:22:03 UTC
my working version looks like:

<IfDefine ICINGA>
	ScriptAlias /icinga/cgi-bin/ /usr/lib/icinga/cgi-bin/
	<Directory "/usr/lib/icinga/cgi-bin/">
		Options ExecCGI
		Order deny,allow
		AuthName "Icinga Access"
		AuthType Basic
		AuthUserFile /etc/icinga/htpasswd.users
		Require valid-user
	</Directory>
	Alias /icinga /usr/share/icinga/htdocs
	<Directory "/usr/share/icinga/htdocs">
                Order deny,allow
		AuthName "Icinga Access"
		AuthType Basic
		AuthUserFile /etc/icinga/htpasswd.users
		Require valid-user
	</Directory>
</IfDefine>


Also you need your apache user to be in the icinga group.
Otherwise apache won't be able to read /etc/icinga/htpasswd.users