Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .htaccess files for Apache 2.4 (and 2.2) #2429

Merged
merged 1 commit into from Jun 21, 2018

Conversation

xela74
Copy link
Contributor

@xela74 xela74 commented Jun 17, 2018

Refer to module by suitable file name (mod_*.c).
Test for mod_authz_core.c (instead of mod_authz_host.c) to properly
detect Apache 2.4 and avoid false positive for Apache 2.2.

Closes #2428.

Refer to module by suitable file name (mod_*.c).
Test for mod_authz_core.c (instead of mod_authz_host.c) to properly
detect Apache 2.4 and avoid false positive for Apache 2.2.
@jobhh
Copy link

jobhh commented Jun 19, 2018

Although functional, this is still a hack. Is there a reason why we're not using the Apache module mod_version? It was included in all distributions I've used the past 10(?) years. Are there known cases where it isn't included?

It immediately makes it clear what the if statement does:

<IfVersion >= 2.4>
    Require all denied
</IfVersion>
<IfVersion < 2.4>
    Order allow,deny
    Deny from all
</IfVersion>

Edit: Just realised I might have better posted this in the accompanying issue. I'll post my question there ;)

@splitbrain splitbrain merged commit cbaf278 into dokuwiki:master Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants