[英]Nginx Passenger Not Visible Application Issue
我有:Ubuntu 12.04 LTS
紅寶石1.9.3-P194
Rails 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應用程序默認頁面。
怎么了? 提前致謝。
@Jashwant。 首先,我刪除了@Brandon提到的行。 其次,我從my_app \\ public文件夾中刪除了index.html文件。
嘗試從配置中刪除以下內容:
location / { root html; index index.html index.htm; }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.