Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295277

.htaccess protections do not work on Apache 2.4 without mod_access_compat

$
0
0

In Apache 2.4, the "Order" becomes deprecated

With Apache 2.4 the old Order get's deprecated in favor of Require.

If hosters by default have Access compat, then Order keeps working. Otherwise however, with our current .htaccess Apache 2.4 will not start after installing Drupal.

I tried to figure out a way to check which the current version of Apache is, but unfortunately IfVersion is only available in 2.4, so that will break 2.2. My stackoverflow question hasn't yielded anything that we can use yet. I asked on IRC, and got two suggestions.

  • Ship two files, one < 2.4 and one >= 2.4. Pick one during install. Not sure how feasable that is for us.
  • Find modules that are unique and frequently enabled in the different environments, and do IfModule on those to determine where we are. This seems like a total hack to be honest, but may actually be the best way to go if we can identify a reliable set of modules.

Viewing all articles
Browse latest Browse all 295277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>