Hello,
I have the following configuration in a vHost:
[...]
Alias /pnp4nagios "/usr/local/pnp4nagios-0.6.25/share"
<Directory "/usr/local/pnp4nagios-0.6.25/share">
AllowOverride None
Order allow,deny
Allow from all
[...]
This works with Apache 2.2 but after upgrading to 2.4 access is denied!
Debug error log gives:
[authz_core:debug] [client x.x.x.x:52204] AH01626: authorization result of
<Require Any>: denied
[authz_core:error] [client x.x.x.x:52204] AH01630: client denied by server
configuration: /usr/local/pnp4nagios-0.6.25/share/graph
I guess this is because of this default entry in /etc/apache2/apache2.conf:
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
Solution is to replace the "Order allow,deny Allow from all" with "Require all
granted".
I do not know, why the legacy directive has no effect in this case and I
suggest to give a hint on this case in the upgrade guide
https://httpd.apache.org/docs/2.4/upgrading.html
I also second the comment from 2013-05-20 on
https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html
"The documentation doesn't mention how authz_host and mod_access_compat
directives interact when both modules are installed. From people testing here
it seems that "deny" rule is always in effect, regardless if it is comming from
authz_host or access_compat. Official description of these interactions would
be welcome."
Best regards
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]