【发布时间】:2011-11-03 02:23:48
【问题描述】:
我尝试通过在我的虚拟主机设置中添加一些Passenger configuration options 来解决here 描述的问题,如下所示:
<VirtualHost 123.123.123.456:80>
DocumentRoot /var/www/my-app/public
ServerName my-awesome-site.com
PassengerMinInstances 1
PassengerPoolIdleTime 1000
</VirtualHost>
PassengerPreStart http.//my-awesome-site.com
当我告诉 Apache2 重新启动时,它告诉我:
Invalid command 'PassengerMinInstances', perhaps misspelled or
defined by a module not included in the server configuration
我的系统: 服务器版本:Apache/2.2.8 (Ubuntu),Passenger 版本:3.0.8
我还没有找到这个问题的答案。
各位,有什么提示吗?
【问题讨论】:
-
您是否尝试将其移出虚拟主机块?确保在此 VH 块之前加载乘客模块。
-
问题已解决。我安装了乘客 3.0.8 但忘记更新 Apache 配置 :-( 感谢您的帮助。