首页 > 开发 > Apache > 正文

Apache错误提示:Invalid command ScriptAlias

2020-10-12 18:49:41
字体:
来源:转载
供稿:网友

在apache启动我们会发现错误日志中会有

Syntax error on line 16 of /etc/apache2/sites-enabled/project: Invalid command 'ScriptAlias', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information.    ...fail! 提示了

虽然不懂英文但是大概看会发现是别名的原因了,下面我们只要加载一个模块即可解决了。

解决方法:在终端里输入如下命令即可:sudo a2enmod authz_host;

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表