轨道乘客与nginx 404错误

时间:2014-11-26 14:45:59

标签: ruby-on-rails nginx passenger

我配置了nginx的乘客并且之前工作正常,但是当我启动服务器进行制作时,它给了我这个错误

/home/user/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/passenger-4.0.50/bin/public/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: _, request: "HEAD / HTTP/1.1", host: "0.0.0.0"

这是我的nginx配置文件

#user  nobody;                                                                                                                                                                                                     
 worker_processes  1;

  error_log  logs/error.log;
   error_log  logs/error.log  notice;
  error_log  logs/error.log  info;

pid        logs/nginx.pid;


events {
worker_connections  1024;
}


  http {
passenger_root /home/user/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0   /gems/passenger-4.0.50;
passenger_ruby /home/user/.rbenv/versions/2.0.0-p353/bin/ruby;

include       mime.types;
default_type  application/octet-stream;
sendfile        on;
keepalive_timeout  65;

server {
listen       443 ssl;
server_name  www.wsite.com;

ssl          on;
ssl_certificate         /etc/nginx/cert/a.pem;
ssl_certificate_key     /etc/nginx/cert/a.key;
ssl_session_timeout     5m;

ssl_protocols           SSLv2 SSLv3 TLSv1;
ssl_ciphers             HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers  on;

root    /var/www/public;
passenger_enabled       on;

} }

这是我的wsite是正确的.. 当我统计乘客它开始,但我在日志中看到此错误,在网页上找不到404错误 任何建议谢谢

0 个答案:

没有答案