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
Previous revision
Next revision Both sides next revision
packages:apache [2013-06-11 20:02]
glen
packages:apache [2013-08-27 16:10]
glen [Apache 2.2 and 2.4 compatible configs]
Line 17: Line 17:
 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>
 +# # Apache 2.x
 +<​IfModule !mod_authz_core.c>​
 +    Order allow,deny
 +    Allow from all
 +</​IfModule>​
 +# Apache 2.4
 +<​IfModule mod_authz_core.c>​
 +    Require all granted
 +</​IfModule>​
 +</​code>​
packages/apache.txt ยท Last modified: 2015-02-12 17:06 by glen