Apache 2.2 -> Apache 2.4

Полезные ссылки

http://httpd.apache.org/docs/2.4/upgrading.html Upgrading to 2.4 from 2.2

http://askubuntu.com/questions/362682/403-error-after-upgrading-to-apache2-4 403 error after upgrading to apache2.4


LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so
LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so

2.2 configuration:
Order deny,allow
Deny from all

2.4 configuration:
Require all denied

In this example, all requests are allowed.
2.2 configuration:
Order allow,deny
Allow from all

2.4 configuration:
Require all granted

2.2 configuration:
Order Deny,Allow
Deny from all
Allow from example.org

2.4 configuration:
Require host example.org


RewriteLog, RewriteLogLevel -- больше нет, переехали

Проблемы с mod_perl





вместо mod_fastcgi -- mod_fcgid

вместо FastCgiServer -- ничего не требуется, достаточно AddHandler / SetHandler

FcgidWrapper -- не надо, документация говорит, это характерно только для php.


SetHandler fastcgi-script


SetHandler fcgid-script

Directory Options

If you had Directory options, note that they all have to be prepended with a + or - or none of them at all. A mix of both is not allowed: Example:

This is allowed:

<Directory /path/to/your/site/>
    Options +Indexes +FollowSymLinks -MultiViews

So is this (Note that these examples don't both do the same thing, the previous one disables the MultiViews option, the next one doesn't):

<Directory /path/to/your/site/>
    Options Indexes FollowSymLinks MultiViews

This is no longer allowed:

<Directory /path/to/your/site/>
    Options Indexes FollowSymLinks -MultiViews

Last config option will throw the a syntax error saying:


The DefaultType directive no longer has any effect, other than to emit a warning if it's used with any value other than none. You need to use other configuration settings to replace it in 2.4.

Решение: удалить совсем


NameVirtualHost has no effect and will be removed in the next release

Решение: удалить совсем

Work/Apache24 (last edited 2015-03-13 16:54:51 by lena)