[英]Nginx Passenger Not Visible Application Issue
I have: Ubuntu 12.04 LTS 我有:Ubuntu 12.04 LTS
ruby-1.9.3-p194 红宝石1.9.3-P194
Rails 3.2.7 Rails 3.2.7
I am trying to get access to my Rails application through Nginx + Passenger. 我试图通过Nginx + Passenger访问我的Rails应用程序。
/opt/nginx/conf/nginx.conf file is: /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;
}
....
When I enter a link 10.11.11.178 I get Welcome to nginx! 当我输入链接10.11.11.178时,我得到欢迎来到nginx!
But I am expecting to get Rails app default page. 但我期待获得Rails应用程序默认页面。
What is wrong? 怎么了? Thanks in advance. 提前致谢。
@Jashwant. @Jashwant。 First, I removed line as was mentioned by @Brandon. 首先,我删除了@Brandon提到的行。 Second, I removed index.html file from my_app\\public folder. 其次,我从my_app \\ public文件夹中删除了index.html文件。
Try removing the following from the config: 尝试从配置中删除以下内容:
location / { root html; index index.html index.htm; }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.