После обновления Bugzilla сервер Apache говорит, что htaccess ExpiresActive not allowed here
Internal Server Error 500
После обновления Bugzilla с 3.xx до 4.xx после просмотра произошла ошибка.
Сообщение об ошибке:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@datapatterns.co.in and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Журнал ошибок Apache Httpd показывает следующую ошибку
# tail -f /var/log/httpd/error_log
# cd /usr/share/bugzilla ./checksetup.pl No error found.
Решение:
Измените файл htaccess, как показано ниже.
# vim /usr/share/bugzilla/.htaccess
<FilesMatch ^(.*.pm|.*.pl|.*localconfig.*)$> deny from all </FilesMatch>
Если веб-служба bugzilla настроена в httpd.conf, вы можете удалить файл .htaccess
# cd / usr / share / bugzilla # mv .htaccess .htaccess.bk
перезагрузите сервер Apache
# service httpd restart
Теперь сообщение об ошибке исчезло.
Пример файла конфигурации Apache для Bugzilla:
<VirtualHost serverip:*> DocumentRoot /usr/share/bugzilla ServerName bugzilla.domain.com RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] IndexOptions SuppressColumnSorting SuppressDescription SuppressHTMLPreamble SuppressLastModified SuppressSize SuppressIcon SuppressRules Options +ExecCGI <Directory "/usr/share/bugzilla"> AddHandler cgi-script .cgi Options -Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit </Directory> <FilesMatch ^(.*.pm|.*.pl|.*localconfig.*)$> deny from all </FilesMatch> </VirtualHost>