我或多或少地遵循了
this教程…我安装了乘客宝石,执行了乘客安装ginx模块,成功安装了Nginx并将其插入到配置中:
server { listen 80; server_name localhost; root /home/admin/sintest/public; # <--- be sure to point to 'public'! passenger_enabled on; }
在/ home / admin / sintest我有:一个空的公共文件夹,
config.ru:
require 'sinatra' set :env,:production disable :run require './app.rb' #the app itself run Sinatra::Application
和测试sinatra app.rb:
require 'sinatra' get '/' do "hello world!" end
现在,当我运行Nginx并打开http://localhost时,我得到的是:403 Forbidden
我究竟做错了什么?我错过了什么吗?