смена версий apache2 c 2.2.22 на 2.4.10

WWW
после смены версий apache2 c 2.2.22 на 2.4.10

полезли ошибки

[Wed Apr 05 20:25:38.870779 2017] [include:error] [pid 20747] [client 1.1.1.1:42990] AH01337: Could not parse expr "($DOCUMENT_URI = /reviews/ )" in /www/d.ru/ssi/menu.htm: Parse error near '$', referer: http://d.ru/articles/matetskiy-1.htm
[Wed Apr 05 20:25:38.870796 2017] [include:error] [pid 20747] [client 1.1.1.1:42990] AH01337: Could not parse expr "($DOCUMENT_URI = /contacts/ )" in /www/d.ru/ssi/menu.htm: Parse error near '$', referer: http://d.ru/articles/matetskiy-1.htm


необходимо включить в этом случаи SSILegacyExprParser
т.е.
SSILegacyExprParser on

и еще раз проверить синтаксис и исправить код. в зависимости от ошибок в логе.

согласно доки —
SSILegacyExprParser Directive
Description: Enable compatibility mode for conditional expressions.
Syntax: SSILegacyExprParser on|off
Default: SSILegacyExprParser off
Context: directory, .htaccess
Status: Base
Module: mod_include
Compatibility: Available in version 2.3.13 and later.

As of version 2.3.13, mod_include has switched to the new ap_expr syntax for conditional expressions in #if flow control elements. This directive allows to switch to the old syntax which is compatible with Apache HTTPD version 2.2.x and earlier.

0 комментариев

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.