Тест конфигурации перестал работать при перезапуске Apache

Когда я пытался перезапустить apache2, я получил следующую ошибку.

* Restarting web server apache2                                         [fail] 
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 14 of /etc/apache2/conf-enabled/httpd.conf:
Either all Options must start with + or -, or no Option may.
Action 'configtest' failed.
The Apache error log may have more information.

Содержание httpd.conf следующие.

<Directory "/var/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes MultiViews +FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

Что пошло не так, как надо?

0
задан 19 August 2014 в 09:48

1 ответ

Используйте тот синтаксис в файле конфигурации в строке 14:

Options Indexes MultiViews FollowSymLinks
1
ответ дан 7 October 2019 в 05:47

Другие вопросы по тегам:

Похожие вопросы: