Ruby on rails Nginx乘客不可见应用程序问题
我有: Ubuntu 12.04 LTSRuby on rails Nginx乘客不可见应用程序问题,ruby-on-rails,ubuntu,nginx,Ruby On Rails,Ubuntu,Nginx,我有: Ubuntu 12.04 LTS ruby-1.9.3-p194 轨道3.2.7 我正试图通过Nginx+Passenger访问我的Rails应用程序 /opt/nginx/conf/nginx.conf文件是: user test; worker_processes 1; events { worker_connections 1024; } http { passenger_root /home/test/.rvm/gems/ruby-1.9.3-p194/
ruby-1.9.3-p194
轨道3.2.7 我正试图通过Nginx+Passenger访问我的Rails应用程序 /opt/nginx/conf/nginx.conf文件是:
user test;
worker_processes 1;
events {
worker_connections 1024;
}
http {
passenger_root /home/test/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.14;
passenger_ruby /home/test/.rvm/wrappers/ruby-1.9.3-p194/ruby;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name 10.11.11.178;
root /efiling/public;
passenger_enabled on;
location / {
root html;
index index.html index.htm;
}
....
当我输入链接10.11.11.178时,我得到欢迎使用nginx但我希望得到Rails应用程序的默认页面 怎么了? 提前谢谢
@贾斯万特。首先,我删除了@Brandon提到的行。其次,我从我的\u app\public文件夹中删除了index.html文件。尝试从配置中删除以下内容:
您的请求转到
位置/{
。有用的链接:谢谢。但我该怎么办?从配置中删除位置?你应该提供完整的配置。在这之前,很难说清楚。这也是个好主意。这对我没有帮助。当我删除代码时,我会得到404错误。@Leshapipev,我在另一个配置中得到404错误和内部服务器错误。你如何处理纳利解决了这个问题?
location / {
root html;
index index.html index.htm;
}