Forum: Rails deployment cant set up root for nginx

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bc7fe9a34212585f6f9845d2db699fae?d=identicon&s=25 sukanta g. (Guest)
on 2012-11-27 13:23

i am in deep problem to deploy my tiny  ruby on rails app in ubuntu with
nginx. i have installed nginx. when i browse localhost, its welcoming
me. but while i am trying to browse my blog like localhost/blog , its
showing 404Not found. i have configured nginx.conf file as below

#user  nobody;
worker_processes  1;

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

pid        logs/;

events {
    worker_connections  1024;

http {
    passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p320/ruby;

include       mime.types;
    default_type  application/octet-stream;
     server {
       listen 80;
       server_name localhost
       root /home/sbrc/sukanta/blog/public;
       passenger_enabled on;

Please help me out. i will wait for your response. i have spent 2 days
already to find a solution but nothing is working.please help me. thank
This topic is locked and can not be replied to.