How to detect Apache/2.4
-
This is double issue for the “Hardening” tab.
1
Note: Apache/2.4 introduced new directives to configure the access level of certain resources in the server, for instance the rules applied to harden these directories will not work and will probably cause issues. We will not fix this because there is no accurate way to determine the exact version number of Apache installed in this server …
It is a way to distinguish between 2.2 and 2.4:
<IfModule !mod_authz_core.c>
https://github.com/szepeviktor/debian-server-tools/blob/master/webserver/apache-conf-available/worpress-htaccess/.htaccessI’ve learned it from HTML5 boilerplate server config.
https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess2
Configuration for all WP directories.Please see the setting for “hosting panels”:
https://github.com/szepeviktor/debian-server-tools/tree/master/webserver/apache-conf-available/worpress-htaccessAnd for v2.4 servers:
https://github.com/szepeviktor/debian-server-tools/blob/master/webserver/apache-conf-available/wordpress.conf
The topic ‘How to detect Apache/2.4’ is closed to new replies.