User Tools

Site Tools


packages:apache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
packages:apache [2013-06-11 20:02]
glen
packages:apache [2013-06-11 20:13]
baggins
Line 16: Line 16:
  
 Detailed information about upgrading and all changes between apache 2.2 and 2.4 can be found [[https://​httpd.apache.org/​docs/​2.4/​upgrading.html|here]] Detailed information about upgrading and all changes between apache 2.2 and 2.4 can be found [[https://​httpd.apache.org/​docs/​2.4/​upgrading.html|here]]
 +
 +===== Apache 2.2 and 2.4 compatible configs =====
 +
 +If you need to support both Apache 2.2 and 2.4, then, for example, if Apache 2.2 config contained:
 +
 +<code apache>
 +Allow from all
 +</​code>​
 +
 +you need to use:
 +
 +<code apache>
 +<​IfModule mod_authz_core.c>​
 +    # Apache 2.4
 +    Require all granted
 +</​IfModule>​
 +<​IfModule !mod_authz_core.c>​
 +    Order allow,deny
 +    Allow from all
 +</​IfModule>​
 +</​code>​
  
packages/apache.txt ยท Last modified: 2015-02-12 17:06 by glen