Согласно этой статье «4. Отключите ненужные модули»
Ссылка: http://www.tecmint.com/apache-security-tips/
Всегда полезно минимизировать шансы стать жертвой любой веб-атаки. Поэтому рекомендуется отключить все те модули, которые в данный момент не используются. Я отключил эти модули mod_imap, mod_include, mod_info, mod_userdir, mod_autoindex.
После этого httpd сервер не перезагружается. Не могли бы вы помочь мне выяснить проблему.
Я не получил никаких ошибок в error_log или access_log
Я получил следующий ответ, если попытаюсь перезапустить
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-02-01 10:02:08 CET; 1min 15s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 58603 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 58601 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 58601 (code=exited, status=1/FAILURE)
конфигурационный тест apachectl
«AH00526: синтаксическая ошибка в строке 16 файла /etc/httpd/conf.d/autoindex.conf: недопустимая команда «IndexOptions», возможно, написана с ошибкой или определена модулем, не включенным в конфигурацию сервера»
#
# Directives controlling the display of server-generated directory listings.
#
# Required modules: mod_authz_core, mod_authz_host,
# mod_autoindex, mod_alias
#
# To see the listing of a directory, the Options directive for the
# directory must include "Indexes", and the directory must not contain
# a file matching those listed in the DirectoryIndex directive.
#
#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing HTMLTable VersionSort
# We include the /icons/ alias for FancyIndexed directory listings. If
# you do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/httpd/icons/"
<Directory "/usr/share/httpd/icons">
Options Indexes MultiViews FollowSymlinks
AllowOverride None
Require all granted
</Directory>
Ошибка, которую я получил в этой строке, я не знаю, что пошло не так IndexOptions FancyIndexing HTMLTable VersionSort
No journal files were found.
я получил для журналаctl -xe - person Sundar   schedule 01.02.2017apachectl -t
) и посмотрите, что он скажет. - person CBroe   schedule 01.02.2017apachectl start
или что-то в этом роде). - person Tom Regner   schedule 01.02.2017