我正在将Windows httpd.conf文件移植到linux apache服务器上。我差不多完成了,但我得到的唯一错误是:
* Starting web server apache2 [Tue Feb 07 14:24:34 2012] [warn] The Alias directive in /etc/apache2/httpd.conf at line 449 will probably never match because it overlaps an earlier Alias.
Syntax error on line 461 of /etc/apache2/httpd.conf:
Invalid command 'Script', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.
The Apache error log may have more information.我的第461行的httpd.conf文件如下:
ScriptAlias /cgi-bin "/var/www/cgi-bin"
Script PUT /cgi-bin/put.py发布于 2012-02-08 03:39:08
看起来mod_actions module没有加载。此模块允许使用Script%s。如果激活此模块,错误消息应该会消失。
通常,您可以通过从相应的mods_available目录创建符号链接来激活mod_actions,如下所示:
ln -s /etc/apache2/mods-available/actions.load /etc/apache2/mods-enabled/actions.load在您的机器上,目录结构可以不同,但原理是相同的:有可用的模块,这些模块可以通过符号链接到mods_enabled目录来激活。
https://stackoverflow.com/questions/9182610
复制相似问题