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
Created attachment 334024 [details] fixed 99_icinga.conf works with apache 2.2 and apache 2.4
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
should have commented, fixed in tree :D
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
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