This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
packages:apache [2013-06-11 19:59] baggins |
packages:apache [2013-06-11 20:13] baggins |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Apache ====== | + | ====== Apache httpd ====== |
Apache 2.4 has landed in Th on June 7, 2013. See [[http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2013-June/023560.html|announcement]]. | Apache 2.4 has landed in Th on June 7, 2013. See [[http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2013-June/023560.html|announcement]]. | ||
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> | ||