即使nginx.conf发生了变化,nginx仍然会说“欢迎来到nginx”

时间:2013-03-22 14:14:31

标签: ruby-on-rails ruby nginx capistrano vps

这是我的nginx.conf,afetr成功部署了capistrano:

http{
  server {
    listen 80;
    server_name localhost;
    passenger_enabled on;
    root /home/gwuix2/picurwebaruhaz/releases/20130322133124/public/;
  }
}

我还添加了

gem 'capistrano-nginx'

到我的Gemfile.rb

Nothings帮助,默认的nginx页面一直显示。 服务器: Ubuntu VPS 12.10 我按照本教程: https://www.digitalocean.com/community/articles/how-to-install-rails-and-nginx-with-passenger-on-ubuntu

2 个答案:

答案 0 :(得分:0)

修改nginx.conf后你重启了Nginx吗?

答案 1 :(得分:0)

我不确定启用网站和网站可用是否有效。试试这些链接/running-rails-applications-using-nginx-with-passenger-on-ubuntu-serverconfiguring-nginx-and-phusion-passenger