加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 500内部服务器错误 – .htaccess中的命令’Header’无

发布时间:2020-12-14 02:42:01 所属栏目:Linux 来源:网络整理
导读:我进入我的服务器错误日志. [Mon Jan 27 08:04:06 2014] [alert] [client x.x.x.x] /home/…/public_html/.htaccess: Invalid command ‘Header’,perhaps misspelled or defined by a module not included in the server configuration 这是我的简单.htacce
我进入我的服务器错误日志.

[Mon Jan 27 08:04:06 2014] [alert] [client x.x.x.x] /home/…/public_html/.htaccess: Invalid command ‘Header’,perhaps misspelled or defined by a module not included in the server configuration

这是我的简单.htaccess:

<IfModule mod_rewrite.c>
    Options -MultiViews
    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ silex.php/ [L]
</IfModule>

可能有什么不对?

解决方法

可能是因为未启用mod_headers.尝试运行a2enmod标头以启用该模块.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读