0

I am trying to install an standard Rails app. After going through a tutorial https://coderwall.com/p/yz8cha I am stuck at last step.

When trying to restart nginx I get the following error - Restarting nginx: nginx: [emerg] unknown directive "upstream" in /etc/nginx/nginx.conf:1 ; nginx: configuration file /etc/nginx/nginx.conf test failed

I have strictly followed all the steps in https://coderwall.com/p/yz8cha so my conf files and unicorn.rb files are pretty much same with changes in projectname and user.

My nginx conf file - http://pastebin.com/bd0RRDxK

4

1 回答 1

7

这里nginx.conf提到的https://coderwall.com/p/yz8cha应该放在你的 Rails 应用程序中config/nginx.conf

然后这个文件被符号链接以便 nginx 被拾取。

于 2013-10-15T15:12:12.993 回答