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

Authorization

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

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

Проблемы с mod_perl

https://forums.freebsd.org/viewtopic.php?f=5&t=46523

http://stackoverflow.com/questions/11128015/installing-mod-perl-2-0-7-on-apache-httpd-2-4-2

http://www.perlmonks.org/?node_id=1066270

Fastcgi

вместо 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
</Directory>

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
</Directory>

This is no longer allowed:

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

Last config option will throw the a syntax error saying:

DefaultType

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

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

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

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