我正在尝试让nginx和Rails 3.2.3在localhost上一起工作。我完成了这条指令http://www.modrails.com/install.html。我做的是
gem install passenger
passenger-install-nginx-module
所以它应该足够了。然后我添加
server {
listen 80;
server_name www.mysite.org;
root /home/alex/RubymineProjects/psg;
passenger_enabled on;
}
并且,启动nginx,我收到了错误
Starting nginx: nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/nginx.conf:16
nginx: configuration file /etc/nginx/nginx.conf test failed
在nginx运行良好之前,它会在"Welcome to nginx!"
上显示http://localhost
。
你的想法?