【问题标题】:sample /opt/nginx/conf/nginx.conf file to run rails app on nginx successfully示例 /opt/nginx/conf/nginx.conf 文件以在 nginx 上成功运行 rails app
【发布时间】:2014-10-04 04:12:36
【问题描述】:

使用 nginx 服务器运行 rails 应用程序的示例 nginx.conf 文件应该是什么。 nginx 是用rvmsudo passenger-install-nginx-module 安装的,通过apt-get install nginx 不知道要使用哪个 nginx 设置?当passenger_enabled on; 仍然存在于/opt/nginx/conf/nginx.conf 文件中时,如何配置nginx.conf 文件以消除index.html not found 错误。该文件还使用正确的红宝石和乘客。我受够了 nginx 安装问题。

【问题讨论】:

标签: ruby-on-rails ruby ruby-on-rails-3 apache nginx


【解决方案1】:

看这个例子:

https://gist.github.com/mikhailov/711913

[现在这里有一些无关的文本,因为 SO 不必要地要求我在此字段中输入 30 个字符,而不是 18 个。]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-07-15
    • 2013-08-10
    • 2017-05-28
    • 2016-01-28
    • 2016-07-15
    • 1970-01-01
    • 2013-02-16
    相关资源
    最近更新 更多