在apache啟動我們會發(fā)現(xiàn)錯誤日志中會有
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! 提示了
雖然不懂英文但是大概看會發(fā)現(xiàn)是別名的原因了,下面我們只要加載一個模塊即可解決了。
解決方法:在終端里輸入如下命令即可:sudo a2enmod authz_host;
新聞熱點
疑難解答